Closed CupidonSauce173 closed 3 years ago
Hey, did you try to add ".setTransports(new String[]{WebSocket.NAME, Polling.NAME})" to your options builder? Made me able to connect to the server, however still didn´t receive the successful connection info at client (but server connected according to log). Please let me know, if it helped you and if you have a solution to the following problem too. :D
No, it didn't work, still does a connection error event.
Is there a way I can get more logs from that event?
Here, I have this error, thanks @Sahara150 in your issue, I could print more info.
io.socket.engineio.client.EngineIOException: websocket error
Anyone?
Update : I could fix my issue which was pretty stupid and I am wondering if this is a bug. It was on my server-side. Basically, I made a user for the app and was opening the server with this command : sudo DEBUG=* nodemon server.js It seems like using a non-rooted user (even if using the sudo command) doesn't let the client with this library to connect. When running the server on the root user, everything worked, weirdly, the java library started to work. Note that the nodejs library was working fine even without the root user.
Hi, after few days of trying to debug this, I will post an issue here to see what's wrong.
currenctly using io.socket:socket.io-client:2.0.1 (and exluding org.json | JSON
Server side version: 4.0.0 Client side version: 2.0.1
This is the code to connect to the socket.io server
I've made a nodejs sample project to see if I can connect to the socket server and it works. Here's the simple code from another app.js
I'm just wondering what I am doing wrong because I don't see an issues.