Skip to content

Drop connect #1648

Open
Open
@robertsLando

Description

@robertsLando

The connect logic should be moved on MqttClient constructor or a dedicated private method like setup.

ATM it is used to parse provided options and validate them, also creates a wrapper to use the correct streamBuilder based on provided protocol and support for handling servers option.

Users should just create the client instance by passing the options and then calling client.connect to connect later

Of course this would be a BREAKING CHANGE. My plan is to do all major breaking changes in v6. v6 will not be back compatible with v5 anymore but will try to fix all the problems this library has

cc @vishnureddy17 @BertKleewein opinions about this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions