startKeepAlive
Starts an opt-in, idle-aware background keepalive: every ~intervalMillis of output silence this client sends one 0x80 keepalive on the shared socket to hold its NAT mapping open, until stopKeepAlive or stop. Application sends reset the idle timer, so a busy client sends no redundant keepalives.
A convenience over sendKeepAlive - it removes the hand-rolled timer every consumer otherwise writes. sendKeepAlive itself is unchanged and still owns no timer. Calling this again replaces the schedule (last call wins). Backed by one daemon thread (mcupc-keepalive) created on the first call.
Return
Result.success once the schedule is armed; Result.failure with an IllegalArgumentException for a non-positive interval, or an IllegalStateException if stop has already run.
Parameters
output-idle time before a keepalive is sent; must be
Defaults to TransportWireFormat.DEFAULT_KEEPALIVE_INTERVAL_MILLIS (20 s). A keepalive may go out up to one quarter-interval (max 5 s) late.