Class: Webhook

ServerlessDb.Webhook

Instances of this class define webhook notification targets, to be notified by subscriptions on a data node registered using the ServerlessDb.ServerlessDbNode#subscribe method. Such targets must refer to a "destination" previously defined in the Webcom developer console and to a "context" that will be attached to all subsequent events notified to this target.

Instances of this class are built using the Webcom.Webhook static method.

Since:
  • 2.10

Members

(readonly) context :string

The context associated with this instance of notification target. It will be attached to each further event notified to this target.

Type:
  • string

(readonly) destination :string

The destination identifier associated with this instance of webhook notification target. It must be defined in the Webcom developer console.

Type:
  • string
show
deprecated