Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I ran into an `undefined is not a constructor` when I tried initiating a WebSocket connection. I imported the WebSocket module like so:`import { WebSocket } from 'react-native'`. When I changed it to `import { WebSocketModule } from 'react-native'` it worked. So I see two possible solutions: 1. renaming the `WebSocketModule` to `WebSocket` 2. updating the docs This PR is for facebook#2.
- Loading branch information