startKeepAlive

open override fun startKeepAlive(intervalMillis: Long): Result<Unit>(source)

Unlike the Connection default, this production implementation does support a scheduled keepalive: it delegates to the server's shared mcups-keepalive executor via ClientChannel, which sends an idle-aware 0x80 keepalive to peer on the given cadence. A non-positive intervalMillis surfaces as the ClientChannel's IllegalArgumentException failure. The schedule is cancelled by stopKeepAlive and by terminate.