-
Notifications
You must be signed in to change notification settings - Fork 56
Description
In the current version of the Dart/Flutter Satori library (1.3.1), the getSatoriClient()
method throws UnsupportedError('Satori is not supported outside JS runtime')
.
This is due to a conditional export here that points to the stub implementation of the method unless dart.library.js
is defined. The stub method returns the error above.
This conditional export is consistent with the Dart/Flutter Nakama library here, but in that case, there is a non-stub concrete implementation of the client that the method returns.
I assume that the conditional is to provide a different library suitable for Flutter web builds (API client) vs. Flutter native builds (GRPC client). There does not seem to be another client available to return in the Satori library.
I did try bypassing the conditional and getting the SatoriRestApiClient
directly, but on authentication, I consistently the following error: ClientException: Connection reset by peer
.