Interface amplifySubscribe

Index

Call signatures

Call signatures

(topic: string, callback: Function)

Subscribe to a message. topic: Name of the message to subscribe to. callback: Function to invoke when the message is published.

Parameters

  • topic: string
  • callback: Function

(topic: string, context: any, callback: Function, priority?: number)

Subscribe to a message. topic: Name of the message to subscribe to. context: What this will be when the callback is invoked. callback: Function to invoke when the message is published. [priority]: Priority relative to other subscriptions for the same message. Lower values have higher priority. Default is 10.

Parameters

  • topic: string
  • context: any
  • callback: Function
  • priority?: number optional

(topic: string, callback: Function, priority?: number)

Subscribe to a message. topic: Name of the message to subscribe to. callback: Function to invoke when the message is published. [priority]: Priority relative to other subscriptions for the same message. Lower values have higher priority. Default is 10.

Parameters

  • topic: string
  • callback: Function
  • priority?: number optional