react-use-websocket
react-use-websocket copied to clipboard
After connecting to ws, there will be undefined messages in the ws cache message queue
It was found that after calling useWebsocket and opening the ws connection, an undefined message appeared in the ws cache queue for unknown reasons. After traversing the cache queue, the undefined message was sent out.
Hi @Alenchenxi ,
Can you show me how you are instantiating the hook? Are you using the socketIO plugin or the heartbeat functionality?