react-websocket icon indicating copy to clipboard operation
react-websocket copied to clipboard

Easy-to-use React component for websocket communications.

Results 16 react-websocket issues
Sort by recently updated
recently updated
newest added

Hello, can you please update code, i discover that you already have patch with OnClose event, but it steel does not in the library

`sendMessage(message){ this.refWebSocket.sendMessage(message); }` is not working help me!! please!

Changing the url after component has mounted does not cause the websocket to update Example: ``` const WebsocketDemo = ({ url }) => { const [message, setmessage] = useState(''); const...

Hello, Could you please update ```example/server.py ``` for the latest python environment? Otherwise, the following error occurred: ``` $ python3 example/server.py Traceback (most recent call last): File "example/server.py", line 29,...

I'm using react-websocket 1.1.6 This is working in development, but when running `npm test` on my project I see... ``` . ReferenceError: WebSocket is not defined at new Websocket (node_modules/react-websocket/build/index.js:89:16)...

PS E:\react-websocket> yarn start yarn run v1.5.1 $ cross-env NODE_ENV=development node server.js E:\react-websocket\node_modules\webpack-dev-server\lib\Server.js:131 const { compile, invalid, done } = compiler.hooks; ^ TypeError: Cannot destructure property `compile` of 'undefined' or...

Hi, yesterday I used react-websocket and it works well but when I do this : ```jsx ``` onOpen works, onMessage works but onClose doesn't works. I go into the module...

How to set interval for receiving data?

Is there an implementation of onError in this?