shamblett / mqtt5_client

A server and browser based MQTT 5 client for dart
Other
50 stars 26 forks source link

fix: future of connectAuto can be null #18

Closed Felixduelmer closed 2 years ago

Felixduelmer commented 2 years ago

This request deals with the successful reconnect functionality of the Browser WS Connection.

If the onOpen function of the Websocket receives the correct data the completer finishes with a null value. This threw an error as the return function was non-nullable. In the Server WS Connection, this is handled correctly.