Configure and manage Pomelo heartbeats
masterHeartbeat packets have a length of 0 and an empty body.
- Interval: The server can configure a heartbeat interval. After the handshake, the client initiates the first heartbeat. Both sides send a heartbeat packet after the specified interval.
- Timeout: The timeout threshold is 2x the heartbeat interval.
- Behavior: If a timeout occurs, the server does not automatically disconnect the client. The client is responsible for deciding whether to disconnect based on its own strategy.