Class RoomManager

Constructors

Properties

Methods

Constructors

Properties

client: Client

Methods

  • createRoom - Create a room.

    Parameters

    • id: number

      The ID of the room.

    • name: string

      The name of the room.

    Returns Room

  • getOrCreateRoom - Get a room by its ID or create it if it doesn't exist.

    Parameters

    • id: number

      The ID of the room.

    • name: string

      The name of the room to use if it doesn't exist.

    Returns Room

  • getRoom - Get a room by its ID.

    Parameters

    • roomId: number

      The ID of the room.

    Returns Room