rikulo / socket.io-client-dart

socket.io-client-dart: Dartlang port of socket.io-client https://github.com/socketio/socket.io-client
https://quire.io
MIT License
674 stars 184 forks source link

After reconnect socket.id returns null #194

Open yarmat opened 3 years ago

yarmat commented 3 years ago

When I trying reconnect the server -> socker.dispose() -> socket.connect() -> socket.id returns null

BramDC3 commented 3 years ago

I have the same problem.

mildmindmine commented 3 years ago

Is this issue has been solve? Found the same problem when close the connection and then connect again. First time we got the socket.id but after that it always returns null. socket_io_client: ^1.0.1 "socket.io": "2.2.0",

savanbthakkar commented 3 years ago

Interesting to see this problem is still not resolved. I have version 1.0.1. This seems to be a major bug.

savanbthakkar commented 3 years ago

@yarmat , @BramDC3 , @mildmindmine : Did you guys find a workaround? How did you manage to solve it?

wupengbigMarker commented 2 years ago

@jumperchen still got the issue from 1.0.2. After I reconnect success, the socket.id is null

wupengbigMarker commented 2 years ago

@yarmat , @BramDC3 , @mildmindmine : Did you guys find a workaround? How did you manage to solve it?

how did you solve this issue

hythl0day commented 1 year ago

Hey I also encountered this problem.

I upgraded the server to 4.x version of socket.io, and changed the client version to 2.x, the problem is sovled.