Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LateInitializationError: Field 'messageStream' has not been initialized. #16

Merged
merged 4 commits into from
Oct 10, 2021

Commits on Oct 7, 2021

  1. Update mqtt_client.dart

    The onAutoReconnected event handler was never set tot the connection handler.
    stijn1989 committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    6d794dd View commit details
    Browse the repository at this point in the history
  2. Create readWrapper if null and messageStream on reconnect is succesfull.

    When connecting fails on first call of connect() on the MQTT client. Then you invoke the doAutoReconnect() method (and also set the autoReconnect property to true). When it connects, the server connections don't have a readWrapper and messagStream, which result in exceptions.
    stijn1989 committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    9e2ed96 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2021

  1. Initialize the readwrapper and messagestream

    Initialize the readWrapper and messageStream in the base connection class.
    
    Removed the creation of those objects in the connection classes in the socket callbacks.
    stijn1989 committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    15a61ed View commit details
    Browse the repository at this point in the history
  2. Update mqtt_connection_base.dart

    ; too much
    stijn1989 committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    d645314 View commit details
    Browse the repository at this point in the history