GCP Pub/Sub Subscriber
AI-generatedSummary
Subscribe to a Google Cloud Pub/Sub subscription to receive messages in real time.
Inputs
- Project ID (required) — The Google Cloud Project ID where the Pub/Sub subscription exists.
- Subscription Name (required) — The name of the Pub/Sub subscription to listen for messages from.
Output shape
A stream of message events, each emitted as an object containing message metadata and data.
Each emitted message includes fields: id, attributes, data (parsed JSON or raw string), publishTime, and received time in ISO format. Messages are acknowledged upon successful processing; errors emit logs and negatively acknowledge the message. The subscription maintains an open listener until closed via the close function.