react-use-websocket
react-use-websocket copied to clipboard
React Hook for WebSocket communication
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" }...

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/');...
 I want display binary data 