serverKeepAlive property

int? get serverKeepAlive

Server Keep Alive.

If the broker sends a Server Keep Alive the client must use this value instead of the keep alive value the client may have sent in the Connect message.

The primary use of the Server Keep Alive is for the broker to inform the client that it will disconnect the client for inactivity sooner than the keep alive specified by the client.

A value of 0 indicates not set by the broker.

Implementation

int? get serverKeepAlive => _serverKeepAlive;