UdpChannel
A delivery-mode-scoped view of one connection: send under this mode's guarantees, and bind the handler for traffic that arrives under it. Stateless and cheap - hold it, or fetch it per call; either is correct.
Reachable as connection.channel(mode) on the server side and client.channel(mode) on the client side. channel(...) itself is an accessor, not a fallible operation - it always returns a handle; the Result lives on send / actuate / actuateBytes.
Stable Core. Full semver guarantee — breaking changes only in a major.
Types
The reliable message-size constants: DEFAULT_MAX_RELIABLE_MESSAGE_BYTES and MAX_RELIABLE_MESSAGE_BYTES.
Functions
Binds onMessage as the text handler for inbound traffic on this channel: each message decoded as UTF-8 and .trim()ed, matching Connection.actuate's long-standing semantics exactly. For a binary or whitespace-significant payload use actuateBytes.
Binds onMessage as the raw-bytes handler for inbound traffic on this channel: an exact-length, undecoded, untrimmed copy of each message. Per-mode: binding a reliable handler does not disturb the unreliable one, and vice versa.