connect abstract method

Future<MqttClientConnectionStatus> connect(
  1. String server,
  2. int port,
  3. MqttConnectMessage message
)

Connects to a message broker The broker server to connect to The port to connect to The connect message to use to initiate the connection

Implementation

Future<MqttClientConnectionStatus> connect(
    String server, int port, MqttConnectMessage message);