socketio / socket.io

Realtime application framework (Node.JS server)
https://socket.io
MIT License
61.16k stars 10.11k forks source link

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

Open shashankgarg4 opened 5 months ago

shashankgarg4 commented 5 months ago

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

zhiblcx commented 2 months ago

解决了吗

darrachequesne commented 1 month ago

Hi! Did you find the culprit?

shashankgarg4 commented 1 month ago

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

darrachequesne commented 1 month ago

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