Setu-TS
    Preparing search index...

    Interface RoomMembershipListener

    Notified whenever a connection joins or leaves a Room.

    A RoomRegistry supplies one to every room it creates so it can maintain a reverse connection → rooms index. Membership changes are the only way that index can be kept accurate, because application code holds the WebSocketRoom directly (ws.room('lobby').add(conn)) and never goes back through the registry to join.

    0.2.0

    interface RoomMembershipListener {
        onJoin(conn: IWebSocketConnection): void;
        onLeave(conn: IWebSocketConnection): void;
    }
    Index