SynchronousMqttBrowserConnectionHandler constructor
SynchronousMqttBrowserConnectionHandler(
- EventBus? clientEventBus, {
- required int maxConnectionAttempts,
- dynamic reconnectTimePeriod = 5000,
Initializes a new instance of the MqttConnectionHandler class.
Implementation
SynchronousMqttBrowserConnectionHandler(super.clientEventBus,
{required super.maxConnectionAttempts, reconnectTimePeriod = 5000}) {
connectTimer = MqttCancellableAsyncSleep(reconnectTimePeriod);
initialiseListeners();
}