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
675 stars 185 forks source link

Duplicate message on the same timestamp #358

Open EPADDO opened 11 months ago

EPADDO commented 11 months ago

Hello, I have the forcenew set to true, however, each time I swap connection from wifi to cell and vice versa, it creates a new socket but without deprecating the previous one. This is on an iOS device. Here is an example of the duplicate. I have tried to call dispose, disconnect, etc on the connectivitity state change but that does not clean up all the duplicates. The list keeps growing on each connectivity change when ssocketio reconnects. flutter: FINE: 2023-12-28 11:51:54.971210: socket receive: type "ping", data "null" flutter: FINE: 2023-12-28 11:51:54.971210: socket receive: type "ping", data "null" flutter: FINE: 2023-12-28 11:51:54.971210: socket receive: type "ping", data "null" flutter: FINE: 2023-12-28 11:51:54.971210: socket receive: type "ping", data "null" flutter: FINE: 2023-12-28 11:51:54.971210: socket receive: type "ping", data "null"