MqttServerConnection.fromConnect constructor

MqttServerConnection.fromConnect(
  1. dynamic server,
  2. int port,
  3. dynamic clientEventBus,
  4. List<RawSocketOption> socketOptions,
  5. Duration? socketTimeout,
)

Initializes a new instance of the MqttConnection class.

Implementation

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