LeaveReason

sealed interface LeaveReason

Why a peer is leaving a room.

Inheritors

Types

Link copied to clipboard
data class Error(val message: String) : LeaveReason

Departure due to an error.

Link copied to clipboard
data object Normal : LeaveReason

Normal, intentional departure.

Link copied to clipboard

The peer's held seat ended without its membership coming back.

Link copied to clipboard
data class Superseded(val by: PeerId) : LeaveReason

The same device came back under a new peer id, by, and took this member's held seat over (#3159). The old member's link was down: a seat whose member is connected is never superseded, so live tabs of one browser keep a seat each.

Link copied to clipboard
data object Unobserved : LeaveReason

The member is gone, and this room did not see it go (#3615).