withKeepalive method

MqttClient withKeepalive(
  1. int seconds
)

set ConnectPacket ping keepaliveSecond

Implementation

MqttClient withKeepalive(int seconds) {
  keepAlive = Duration(seconds: seconds);
  _connectPacket.withKeepalive(seconds);
  return this;
}