socket.io-react-hook
socket.io-react-hook copied to clipboard
React hooks for socket.io 4.x
I run into this issue where `sockets.current[namespaceKey]` can be `undefined` in ioProvider.tsx, I am referring to https://github.com/nitedani/socket.io-react-hook/blob/main/packages/socket.io-react-hook/src/IoProvider.tsx#L89. Although it was semi reliably take place in my app when parent of...
Hi, Getting the following issue when refreshing our app, or loading the app, when not on the root route. ``` TypeError: Cannot read properties of undefined (reading 'subscribers') at Object.subscribe...
Hi, I want to connect to a different domain other than the one on my localhost because backend will be deployed in other platform, but it seems that it only...
Because of the check for SSR.
This issue is related to [this](https://github.com/socketio/socket.io-client/issues/1544) issue in socket.io-client basically after calling socket.disconnect() from a namespace socket, trying to connect again to the same namespace will not use multiplexing. from...
I like this hook a lot, but I need to separate sendable and receivable events, so I don't like having to do this: ```jsx const { sendMessage } = useSocketEvent('sendable-event');...
It looks like it would be fairly simple to add callback support to the `useSocketEvent` hook. The API would then support something like this: ```jsx useSocketEvent('name-of-event', (response) => handleResponse(response)); ```...