SynchronousMqttBrowserConnectionHandler constructor

SynchronousMqttBrowserConnectionHandler(
  1. EventBus? clientEventBus, {
  2. required int maxConnectionAttempts,
  3. dynamic reconnectTimePeriod = 5000,
})

Initializes a new instance of the MqttConnectionHandler class.

Implementation

SynchronousMqttBrowserConnectionHandler(super.clientEventBus,
    {required super.maxConnectionAttempts, reconnectTimePeriod = 5000}) {
  connectTimer = MqttCancellableAsyncSleep(reconnectTimePeriod);
  initialiseListeners();
}