Cloud Pub/Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications.
This document contains to an API reference, samples, and other resources useful to developing Node.js applications. For additional help developing Pub/Sub applications, in Node.js and other languages, see our Pub/Sub quickstart, publisher, and subscriber guides.
Before running the samples, make sure you've followed the steps outlined in Using the client library.
View the source code.
Usage:
node quickstart.js
View the source code.
Usage:
node subscriptions.js
View the source code.
Usage:
node topics.js
