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, API gateway has a max connection duration of 2 hours on all websocket endpoints (https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html#apigateway-execution-service-websocket-limits-table). This limit can't be increased. The auto reconnect option handles the 10 minute Idle...

onOpen, onError etc message timestamps dont seem to be proper. Am I missing something? eg: ``` { timeStamp: 39658543.70000005 type: "open" } ``` ``` { "timeStamp": 40542758.70000005, "type": "close" }...

![image](https://github.com/robtaussig/react-use-websocket/assets/50570005/3850b3de-adcd-41ba-bc15-e2164d5a514d)

We need to maintain the websocket connection for minimum of 30 mins. So, the configuration goes as below retryOnError:true, shouldReconnect : (didUnmount === false) reconnectAttempts : 3 This works perfectly,...

Hi, I didn't see anywhere in the docs whether or not this library is assumed to be compatible with React Native. It might be helpful for those choosing a websocket...

After noticing many rerenders of my components using useWebSocket, I took a look at the relevant code and noticed the hook internally maintains a "lastMessage" state. I think an option...

Per the docs u can set should use shouldReconnect on RetryOnError to retry the eventStream, however i dnt see this happening or doing anything... Here is my code const {...

Couldn't find it anywhere, Is there any way to use this library in case I have to provide CSRF header as the WebSocket header? ``` const socket = new SockJS('/server/ws/');...

![Screenshot 2023-04-27 000757](https://user-images.githubusercontent.com/89235917/234651006-dfa9a80f-17ba-48b7-95dc-7777563037ea.png) I want display binary data ![Screenshot 2023-04-27 000844](https://user-images.githubusercontent.com/89235917/234651126-89c9f8c6-dbd8-42c0-a9ff-7d910eb2048a.png)