unreliableDatagram
fun unreliableDatagram(payload: ByteArray, channel: Byte = DEFAULT_UNRELIABLE_CHANNEL): ByteArray(source)
Frames payload as an unreliable application datagram: [0x90][channel][payload…]. Framing is done here, at the application-data call site — never in the shared send seam, which also carries unframed control datagrams (keepalive, PONG, REGISTERED) that must not be double-framed.
Return
the framed datagram, payload.size + 2 bytes
Parameters
payload
the application bytes to carry, placed on the wire verbatim
channel
the unreliable channel id; this build only ever emits DEFAULT_UNRELIABLE_CHANNEL