react-use-websocket
react-use-websocket copied to clipboard
The library does not sense the disconnection of websocket when it is connected to a network, but this network does not provide Internet
The library does not sense the disconnection of websocket when it is connected to a network, but this network does not provide Internet, which makes websocket still connected when it is not really connected anymore. How can I manually connect to websocket. Maybe with the function "getWebSocket()?.OPEN(); and "getWebSocket()?.close();"?
same issue here
solution is to send ping messages https://github.com/robtaussig/react-use-websocket/issues/133#issuecomment-1105155442