mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
70c89fa0d2
Using the provided WebSocket example under react-native 0.17, the sample code throws the following error: "TypeError: ws.on is not a function(…)" It's listening on ".on" which does not exist, rather than assigning a function to onopen, onmessage, onerror and onclose. See: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket