MqttServerConnection<T extends Object>.fromConnect constructor

MqttServerConnection<T extends Object>.fromConnect(
  1. String server,
  2. int port,
  3. EventBus clientEventBus,
  4. List<RawSocketOption> socketOptions,
  5. Duration? socketTimeout,
)

Initializes a new instance of the MqttConnection class.

Implementation

MqttServerConnection.fromConnect(
  String server,
  int port,
  events.EventBus clientEventBus,
  this.socketOptions,
  this.socketTimeout,
) : super(clientEventBus) {
  connect(server, port);
}