Companion

object Companion

Properties

Link copied to clipboard

The code of a AdmitMessage.Reject that carries none — an Unknown with an empty id.

Functions

Link copied to clipboard

Resolve a wire id to its code. A null id (the peer sent none) or an unrecognised one yields Unknown, never an error — an admit frame that fails to decode is dropped silently, which would hang a handshake that has no timeout.

Link copied to clipboard
fun fromWire(id: String?, retryable: Boolean?): RejectCode

Resolve a wire id and the retryable the sender stated beside it (Decided 25). A code this build knows is itself, whose retryability is fixed here and never read off the wire. Any other is Unknown with the stated retryable, or retryable when none was stated.