Keep Alive Packet
๐ฆ 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.