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