react-use-websocket
react-use-websocket copied to clipboard
React Hook for WebSocket communication
Hello, I have visted this library before but it didnt work for my implementation but now i have another use case that i think would work great. We have a...
Hello folks, I'm having an issue while trying to connect a server with a self-signed certificate. My application runs great on a simulator and websocket connection works. Unfortunately on a...
I like to be able to customise the retry behaviour, e.g. like using a token bucket. Then a client would be able to reconnect immediately for 'normal' websocket connection interruptions...
This fixes the following console warning including 'undefined', if the user never specifies that config option console.warn(`Max reconnect attempts of ${optionsRef.current.reconnectAttempts} exceeded`); There's another instance of the same warning which...
In a scenario where you have 2 users chatting is there any way for the receiver to know when the sender is typing using your hook?
Hi guys, My team is evaluating libraries for handling WebSockets. Is this library alive? Are there any planned updates?  Also, docs seem to be a bit out of sync:...
Im using the websocket like this ```js const {sendMessage, lastMessage, readyState} = useWebSocket(WEBSOCKET_URL, { heartbeat: { message: 'ping', returnMessage: 'pong', timeout: 2000, interval: 1000, }, onClose:()=>{ console.log("WebSocket connection closed") },...
When running in a remix app with bun I see this error: `TypeError: (0 , import_react_use_websocket.default) is not a function` To make sure this wasn't a bun issue I created...
Hi there, I am using this library on a fairly large project and recently we had an incident where the assertIsWebsocket assertion started failing. We were unable to track down...