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