MqttBrowserClient.withPort constructor

MqttBrowserClient.withPort(
  1. String server,
  2. String clientIdentifier,
  3. int port, {
  4. int maxConnectionAttempts = MqttConstants.defaultMaxConnectionAttempts,
})

Initializes a new instance of the MqttServerClient class using the supplied Mqtt Port. The server hostname to connect to The client identifier to use to connect with The port to use

Implementation

MqttBrowserClient.withPort(
  super.server,
  super.clientIdentifier,
  int super.port, {
  this.maxConnectionAttempts = MqttConstants.defaultMaxConnectionAttempts,
}) : super.withPort();