heroiclabs / nakama-dart

Pure Dart Client for Nakama Server
https://heroiclabs.com/docs/nakama/client-libraries/dart
182 stars 55 forks source link

WASM is not supported #117

Open imaNNeo opened 1 week ago

imaNNeo commented 1 week ago

Hi there, I just realized that the Nakama SDK is not compatible with Flutter WASM. It's simple to reproduce, just run the app using --wasm parameter and it doesn't work (the APIs I mean), And in my own case, I get this error: Unsupported operation: No implementation of the connect api provided

We just need to upgrade the dio and web_socket_channel dependencies to be compatible with WASM (I tested it and it works with this change, I'm gonna create a PR now)