WireFormat.maxInactivityDuration=1000 means after 1s if no data has been received the broker will close the connection !!? is it a good idea ? MaxInactivityDurationInitalDelay : The initial delay before starting inactivity checks. MaxInactivityDuration : Timeout, in milliseconds, after which the connection is closed by the If you set wireFormat.maxInactivityDuration=0 -> Inactivity monitoring is disabled when set to a value <= 0.