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

[Flutter Web] IO server disconnect #386

Open feriyalsusanto opened 4 months ago

feriyalsusanto commented 4 months ago

Hi, I've encounter weird issue when the socket is disconnected (io server disconnect) it won't reconnect to the server. It's only happened in Web. I'm using latest version 2.0.3+1 and 3.0.0-beta.2 but both have same issue.

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.3810], locale en-ID) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.3.6) [!] Android Studio (version 2021.3) X Unable to determine bundled Java version. [!] Android Studio (version 2023.2) X Unable to determine bundled Java version. [√] Android Studio (version 2024.1) [√] VS Code (version 1.90.2) [√] Connected device (3 available) [√] Network resources ! Doctor found issues in 2 categories.

My configuration image

sinhapaurush commented 3 months ago

Got any solution? I am facing same issue.

rmasarovic commented 2 months ago

what i now is not possilbe use extra parameter in header on web. Its browser websocket api specification.