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

i save my data in other js file, so i don't want rerender. how should i do? thanks ``` const [, setMarketsAtom] = useRecoilState(marketsAtom) // from recoil store ts file...

How to set / attach cookies to the web socket connection URL? We are connecting to mattermost server for websocket connection. We need to set/attach some cookies for this connection...

It seems that he only supports WS or WSS but I use the Gateway service, I use the HTTP protocol, and he can forward my WebSocket requests, so how can...

I am wondering whether your library support IPv6 address with zone id like fe80::1642:fcff:fee9:434b%lanbr0 ? I searched your document but could not find information regarding IPv6 address. The JS Websocket...

Currently, we have this arrangement of types https://github.com/robtaussig/react-use-websocket/blob/0d9444df3a143bd3bec5fead7fdb05f7a00f9908/src/lib/types.ts#L62-L69 The problem is, that we `T` is not forwarded to the `sendJsonMessage` member. If we try, we get an error: `Type 'SendJsonMessage'...

Is there a way to pass options to the websocket connection so it will not check the certificate when connecting to secure websocket server? Originally, when using native websocket in...

i want to cancel automatic connection beforehand how can i do it

We need ES Module for Tree Shaking to work. https://webpack.js.org/guides/tree-shaking/

```javascript const { } = useWebSocket("wss://Imateapot.org",{ share: true, retryOnError: true, reconnectAttempts: 3, reconnectInterval: 1000, onOpen: e=>console.log("ONOPEN", e), onClose: e=>console.log("ONCLOSE", e), onMessage: e=>console.log("ONMESSAGE", e), onError: e=>console.log("ONERROR", e), onReconnectStop: e=>console.log("ONRECONNECTSTOP", e), },true);...

Change JsonValue type, so it allows arrays.