RTCForge API Reference v1.1.1
    Preparing search index...

    Variable RoomStateConst

    RoomState: {
        Active: "active";
        Closed: "closed";
        Closing: "closing";
        Creating: "creating";
    } = ...

    Lifecycle states of a Room. A room advances forward only: creating → active → closing → closed.

    Type Declaration

    • ReadonlyActive: "active"

      At least one peer is present; the room is relaying and broadcasting.

    • ReadonlyClosed: "closed"

      Terminal state; the room has emitted RoomEvent.Closed and holds no peers.

    • ReadonlyClosing: "closing"

      Room is tearing down (last peer left, expired, or disposed).

    • ReadonlyCreating: "creating"

      Room object exists but no peer has successfully joined yet.