Closed Sahara150 closed 2 years ago
The Socket.IO client is not a WebSocket implementation, so it will not be compatible with a plain WebSocket server. More information here: https://socket.io/docs/v4#What-Socket-IO-is-not
Closed due to inactivity, please reopen if needed.
I have a websocket server with PHP, which works perfectly fine with pure JS. With the socket.io-client-java however it connects on server side, but the successful connection is never acknowledged by the client. Every timeout interval it just disconnects and connects again. I know that is not a problem of Ratchet, since there are no issues connecting via telnet or JS-console.
To Reproduce
Socket.IO server version: unknown Server
Binary running in terminal:
Command to execute it:
Socket.IO java client version:
2.0.1
Client
Expected behavior Terminal should show "Starting test" and after a short moment "Connection established". Client should attach to server.
Actual behavior Terminal shows: Starting test [io.socket.client.SocketIOException: timeout] [io.socket.client.SocketIOException: timeout] [io.socket.client.SocketIOException: timeout] [io.socket.client.SocketIOException: timeout] [io.socket.client.SocketIOException: timeout] [io.socket.client.SocketIOException: timeout] [io.socket.client.SocketIOException: timeout] [io.socket.client.SocketIOException: timeout] ...
Client attaches to server and after timeout detaches and attaches again.
Platform:
Additional context Client and server are run on same pc, there´s no wifi problems possible.