functions.pubsub. TopicBuilder
The Google Cloud Pub/Sub topic builder interface.
Access via functions.pubsub.topic().
Method
onPublish
onPublish(handler) returns functions.CloudFunction
Event handler that fires every time a Cloud Pub/Sub message is published.
Parameter |
|
|---|---|
|
handler |
function(non-null functions.pubsub.Message, optional non-null functions.EventContext) Event handler that runs every time a Cloud Pub/Sub message is published. Value must not be null. |
- Returns
-
non-null functions.CloudFunctionA Cloud Function which you can export and deploy.


