Hierarchy

  • INotifier

Methods

  • Notifies all of the users in the provided room.

    Note: Notifications only are shown to those online and it only stays around for the duration of their session.

    Parameters

    • room: IRoom

      The room which to notify the users in

    • message: IMessage

      The message content to notify users about

    Returns Promise<void>

  • Notifies the provided user of the provided message.

    Note: Notifications only are shown to the user if they are online and it only stays around for the duration of their session.

    Parameters

    • user: IUser

      The user who should be notified

    • message: IMessage

      The message with the content to notify the user about

    Returns Promise<void>

  • Notifies all of the users a typing indicator in the provided scope.

    Parameters

    Returns Promise<(() => Promise<void>)>

    a cancellation function to stop typing

Generated using TypeDoc