Closed proformance closed 3 years ago
I found a solution, the introduced restriction is that SSL needs to be used. In order to solve this wss (WebSocket Secure) needs to be used instead of ws (WebSocket).
So what I did was to create a certificate using letsencrypt, and then configure nginx according to https://blog.kuzzle.io/secure-kuzzle-nginx-and-ssl
Last but not least, instead of using
_kuzzle = Kuzzle(WebSocketProtocol(Uri(
scheme: 'ws',
host: 'yourdomain',
port: 7512,
)));
I used
_kuzzle = Kuzzle(WebSocketProtocol(
Uri.parse("wss://yourdomain.com:17512"),
));
Hi!
The snippet below works well on the master branch of Flutter, but when using Flutter on the beta-branch it doesn't seem to work anymore, it complains about http not being supported.
Link to snippet in Kuzzle - Getting started guide
This is the flutter-commit that causes this issue: https://github.com/dart-lang/sdk/commit/ae0fbde71c23c9353b1095d1f480c5e239927abd
Best regards