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