socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

Getting error websocket.js:39 WebSocket connection to 'ws://localhost:3000/socket.io/?EIO=4&transport=websocket' failed: again and again

Open shashankgarg4 opened this issue 1 year ago • 6 comments

Hello i am using socket.io-client package in my frontend react project this is my frontend code image and in backend my code is setup in node js this is my node js code so initially socket gets connected and prints in console "user is connected" then after sometime it shows error in console in loop image

image image image

Can you please tell me why this error is coming thanks @darrachequesne @maccman

shashankgarg4 avatar May 14 '24 06:05 shashankgarg4

解决了吗

zhiblcx avatar Aug 26 '24 03:08 zhiblcx

Hi! Did you find the culprit?

darrachequesne avatar Sep 17 '24 12:09 darrachequesne

Hello @darrachequesne we did not find any solution for this error

shashankgarg4 avatar Sep 17 '24 15:09 shashankgarg4

Hmm, I don't see anything weird in the code you provided. Could you please provide a basic example reproducing the issue?

darrachequesne avatar Sep 19 '24 06:09 darrachequesne

It only happens to me on the first charge.

SergioCabreraDev avatar Jan 09 '25 08:01 SergioCabreraDev

same happening to me :)

Mateusinbessa avatar Feb 20 '25 12:02 Mateusinbessa