Skip to content
Branch: master
Find file History

README.md

Google Cloud Platform logo

Google Cloud Pub/Sub: Node.js Samples

Open in Cloud Shell

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.

Table of Contents

Before you begin

Before running the samples, make sure you've followed the steps outlined in Using the client library.

Samples

Quickstart

View the source code.

Open in Cloud Shell

Usage:

node quickstart.js


Subscriptions

View the source code.

Open in Cloud Shell

Usage:

node subscriptions.js


Topics

View the source code.

Open in Cloud Shell

Usage:

node topics.js

You can’t perform that action at this time.