You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/docs/docs.html
+19-6Lines changed: 19 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,21 @@ <h3>Datastore Overview</h3>
73
73
</p>
74
74
</article>
75
75
76
+
<articleng-if="isActiveDoc('pubsub')">
77
+
<h3>Pub/Sub Overview</h3>
78
+
<p>
79
+
The <code>gcloud.pubsub</code> method will return a <code>pubsub</code> object, allowing you to create topics, publish messages, subscribe to topics, and more. See the <ahref="https://developers.google.com/pubsub/overview">Google Cloud Pub/Sub overview</a> for more information.
80
+
</p>
81
+
<divhljs>
82
+
var pubsub = gcloud.pubsub({
83
+
projectId: 'myProject',
84
+
keyFilename: '/path/to/keyfile.json'
85
+
});</div>
86
+
<p>
87
+
See the examples below, which demonstrate everything from creating a topic to subscribing to messages on a topic.
0 commit comments