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