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

React Hook for WebSocket communication

Results 82 react-use-websocket issues
Sort by recently updated
recently updated
newest added

Hi, I saw this related issue was closed before: https://github.com/robtaussig/react-use-websocket/issues/106. It'd be nice if there was another handler that could catch WebSocket constructor errors, something like "onConnectError". For context, I...

First of all, thanks for a fantastic lib! Currently, passing the option `shared: true` allows multiple hook instances to share the same websocket. This is nice, but it would be...

A [react app](https://github.com/152334H/gpt-j-editor/blob/66c9008213cee30bed8cb66b367b4fbca3b06499/editor/src/App.js#L161) using a FastAPI [websocket endpoint](https://github.com/152334H/gpt-j-editor/blob/ca110469a713afd98ed00cfb3d0199d03ae93c81/backend/main.py#L36) connects & communicates successfully from desktop, but connects and throws an onerror event on mobile. Replacing useWebSocket with a basic manual websocket...

The library does not sense the disconnection of websocket when it is connected to a network, but this network does not provide Internet, which makes websocket still connected when it...

This is less of a code issue and more a maintaining issue, it's just easier and less confusing if all releases appear under the 'Releases' page, since the only release...

Hello, im tryin to initiate a reconnect for the useEventSource using Event stream. Problem is that sometime the Server has high traffic and shuts the connection, Is there any hthing...

Hi, We have a share connection socket. We share it through the app. I want to send a message on socket open but not sure whihc methid to use (...

I'm exceeding the frame size limit for AWS Web Sockets (32kb), is there a way to manually split a message into multiple frames?

Hey, thanks for the awesome lib. I have a question however, is the socket supposed to not close when I close the tab ?

Hi, I am using this with api gateway websockets. How do you sent messages to specific routes?