AdmissionFailed

data class AdmissionFailed(val reason: AdmissionFailure, val at: Instant) : MembershipEvent

The joiner's admit handshake failed terminally — it never entered a roster (joiner perspective only).

Terminal state. Room.broadcast and Room.sendTo become silent no-ops after this event. As with HostLost, an event racing it on another thread can land just after it: ignore everything that follows.

Distinct from HostLost: HostLost means an already-admitted joiner lost its host; AdmissionFailed means admission never completed at all. Emitting it is the loud alternative to the pre-#1178 silent hang — without it, a dropped or refused Hello left the consumer waiting on Room.roster forever with no signal.

reason separates an active host refusal from silence — see AdmissionFailure.

A refusal and silence are two of the three ways a never-admitted joiner ends. The third is not this event: a joiner refused because its peer id was superseded under its own key ends Left(self, LeaveReason.Superseded(by)) instead (Left), and a room ends one way only.

Constructors

Link copied to clipboard
constructor(reason: AdmissionFailure, at: Instant)

Properties

Link copied to clipboard
val at: Instant
Link copied to clipboard