socketio / socket.io-client-java

Full-featured Socket.IO Client Library for Java, which is compatible with Socket.IO v1.0 and later.
https://socketio.github.io/socket.io-client-java/installation.html
Other
5.32k stars 972 forks source link

Android auto disconnect #702

Open gaohomway opened 2 years ago

gaohomway commented 2 years ago

It automatically disconnects and reconnects every 20 seconds or so.

It's confusing to automatically disconnect even if there is no successful connection.

By the way how to open the log?

Android Version :

implementation ('io.socket:socket.io-client:2.0.1') {
        exclude group: 'org.json', module: 'json'
    }

Nodejs Servier Version :

"socket.io": "4.4.1",
gaohomway commented 2 years ago

@darrachequesne Do you have a good way to solve this problem

immohanravi commented 2 years ago

It automatically disconnects and reconnects every 20 seconds or so.

It's confusing to automatically disconnect even if there is no successful connection.

By the way how to open the log?

Android Version :

implementation ('io.socket:socket.io-client:2.0.1') {
        exclude group: 'org.json', module: 'json'
    }

Nodejs Servier Version :

"socket.io": "4.4.1",

Did u resolved this problem?

gaohomway commented 2 years ago

@immohanravi Solved because I used DNS global acceleration. Find a service provider.