Rejected

data class Rejected(val message: String, val code: RejectCode = RejectCode.Unspecified) : AdmissionFailure

The host actively refused admission with an us.tractat.kuilt.session.admit.AdmitMessage.Reject — for example the #1172 room-mismatch gate, which arrives as us.tractat.kuilt.session.admit.RejectCode.RoomMismatch. message is the host's stated reason (for logs); code is its structured counterpart, and is what to branch on. A host that predates typed codes surfaces us.tractat.kuilt.session.admit.RejectCode.Unknown. Retrying the same request is futile; the joiner needs to change something (e.g. its target room).

Constructors

Link copied to clipboard
constructor(message: String, code: RejectCode = RejectCode.Unspecified)

Properties

Link copied to clipboard
Link copied to clipboard