react-use-websocket icon indicating copy to clipboard operation
react-use-websocket copied to clipboard

After connecting to ws, there will be undefined messages in the ws cache message queue

Open Alenchenxi opened this issue 1 year ago • 1 comments

image

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.

Alenchenxi avatar Feb 19 '24 02:02 Alenchenxi

Hi @Alenchenxi ,

Can you show me how you are instantiating the hook? Are you using the socketIO plugin or the heartbeat functionality?

robtaussig avatar Feb 28 '24 19:02 robtaussig