Closed ParadoxPixel closed 3 years ago
Nvm, after some more research and debugging turned out I forgot about some security measures I had in place.
can i see ur code after solved that?
The error was caused by me closing the connection during the connect event
Im getting this issue on mobile side (react native) suddenly happened , in website (react JS) not doing harm. Due to mobile issue it also crashed the website too. it can be due to following reasons. FRONT-END
alot of request at a time .
BACK-END
blocked from server
COMMON
Describe the bug The problem I'm having is that the client is unable to connect to the socket.io server. I get a "xhr poll error" every time I try to connect but it used to work fine and then out of the blue it started having issues.
To Reproduce
Socket.IO server: https://github.com/Mindgamesnl/socketio
Server
Socket.IO java client version:
2.0.0
Client
Expected behavior It should connect to the websocket and not directly drop the connection
Platform:
Additional context The Socket.IO server works fine for clients connecting from the browser hense why I deduced that it might be an issue with the java client.
I used the java client version
1.0.0
before this but it started instantly dropping the connection after it was just established out of the blue. A little later it stopped connecting altogether and only gave me a "transport error". An important note on this is that it worked fine before but suddenly gave me these issues.Edit: I also tried Netty-Socket.IO and used Socket.IO java client version:
1.0.0
due to compatibility and this gave me the same error