[feat] Detect React-Native environment and use all websocket features (#591)
React-Native provides a Websocket object that is more functionally aligned with the Node.js websocket than the browser websocket. It has the same constructor signature as the Node.js websocket and can support extraHeaders and protocols. This PR will detect when the engine.io-client is running in React-Native, call the proper Websocket constructor, and enable support for extraHeaders.
C
Craig Thayer committed
26e9329050b105b548d65e58da64f24283612b43
Parent: 28765c5
Committed by Damien Arrachequesne <damien.arrachequesne@gmail.com>
on 11/2/2018, 7:09:02 AM