Skip to main content

Keep Alive Packet

Only TYPE Field


๐Ÿ“ฆ Sizeโ€‹

1 byte

  • TYPE: 8 bits (0x05)

๐Ÿ” Sent Byโ€‹

Both client and server, periodically during an active session.


๐Ÿงช Contentsโ€‹

  • Contains only a single byte: the TYPE field
  • It is not encrypted

๐Ÿ”„ Purposeโ€‹

This packet is used to prevent idle disconnections.

If no packets (including keep-alives) are received within the inactivity timeout, the session will automatically close.

Used in both directions to confirm that the other side is still alive.