-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Hi,
I'm using the js library socket.io-client v 4.0.2 on the frontend. In the backend I have jetty + socket.io java libs listed below:
compile 'io.socket:socket.io-server:3.0.1'
compile 'io.socket:engine.io-server:4.0.3'
compile 'io.socket:engine.io-server-jetty:4.0.3'
My problem is that my socket reconnect to the server every five second.
It looks like the connection is established because the 'on connect' handler is fired, but it fires every five seconds.
In addition in the chrome webtools I can see the websocket GET request fire every five seconds (on the server side I have async enabled for my servlet).
I supposue this problem is caused by the incompatibility between js and java libraries.
I have experienced very similar issue few months ago when upgraded to v3.
Please let me know which versions of the libs I should use.