shamblett / mqtt5_client

A server and browser based MQTT 5 client for dart
Other
51 stars 29 forks source link

Browser WS Connection: auto reconnect is not handling null values #19

Closed Felixduelmer closed 2 years ago

Felixduelmer commented 2 years ago

In the browser ws connection, the auto-reconnect function is not handling null values.

If the onOpen function of the Browser WS Connection 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. Pull request is open: #18

shamblett commented 2 years ago

Thanks, package re published at version 3.1.3, please re test.