-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter web socket connection problem on wasm #404
Comments
@Flattih I faced the same issue on WASM, have you resolved this issue yet? |
@hnvn I made my improvements with flutter run -d chrome. I built it with WASM and deployed it with Firebase. It works in live mode, but WASM doesn't work in debug mode. I couldn't find a solution. |
I keep getting the error |
@hnvn Yes, I experienced the exact same situation as you. ::) |
Update: flutter run -d chrome works fine.
But it doesn't work with web assembly flutter run -d chrome --wasm
Update 2: WASM works on production.
socket_io_client: ^3.0.2
socket.io: 4.8.1 nodejs
Flutter version 3.24.5
Dart version 3.5.4
Nodejs version 18.17.0
I cannot connect to the socket on the web, it works fine on Android and iOS. I'm trying to establish a socket connection with flutter web for the first time. Is there something I don't know? I leave my client and server codes below. It gives no transport available error on the web.
NodeJS
DART
The text was updated successfully, but these errors were encountered: