Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Event

Index

Methods

  • addListener(id: string, type: string, callback: (parameters: object) => void): void
  • Adds a listener to a specific topic, registering a callback function to be triggered when a message is received by the topic

    Parameters

    • id: string

      The topic unique ID

    • type: string

      The topic type

    • callback: (parameters: object) => void

      Callback function triggered when a message is received

        • (parameters: object): void
        • Parameters

          • parameters: object

          Returns void

    Returns void

  • messageListeners(type: string, parameters: object): void
  • Sends a message to all listeners of the especified topic type

    Parameters

    • type: string

      The topic type

    • parameters: object

      Parameter object to be passed to the callback function

    Returns void

Generated using TypeDoc