Companion
object Companion
Properties
Link copied to clipboard
First byte of every encoded admit payload. Application frames must not begin with this byte so the receiver can distinguish protocol from app frames. Value: 0x61 (ASCII 'a' for "admit") — outside the CBOR major-type-7 range that serialization might produce as a bare byte, and unlikely to be the first byte of a legitimate non-CBOR application payload.
Functions
Link copied to clipboard
Attempt to decode bytes as an AdmitMessage.
Link copied to clipboard
Encode an AdmitMessage to bytes with the PREFIX_BYTE framing prefix.
Link copied to clipboard
Returns true if bytes looks like an admit frame (starts with PREFIX_BYTE).