Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INotifier

Hierarchy

  • INotifier

Index

Methods

getMessageBuilder

notifyRoom

  • 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>

notifyUser

  • 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>

Generated using TypeDoc