mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
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.