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