Skip to content

incompatibility between js and java libraries #35

@mostekp

Description

@mostekp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions