This accessor provides methods for accessing rooms in a read-only-fashion.

Hierarchy

  • IRoomRead

Methods

  • Gets an iterator for all of the users in the provided room.

    Parameters

    • roomId: string

      the room's id

    Returns Promise<IUser[]>

    an iterator for the users in the room

  • Gets an iterator for all of the messages in the provided room.

    Parameters

    • roomId: string

      the room's id

    Returns Promise<IterableIterator<IMessage>>

    an iterator for messages

  • Get a list of the moderators of a given room

    Parameters

    • roomId: string

      the room's id

    Returns Promise<IUser[]>

    a list of the users with the moderator role in the room

Generated using TypeDoc