Skip to content

Commit 1bf098f

Browse files
committed
Update README.md
Added `{ reuseExisting: true }` to `subscribe` method call in pubsub sample
1 parent 5771373 commit 1bf098f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ topic.publish({
243243
}, function(err) {});
244244

245245
// Subscribe to the topic.
246-
topic.subscribe('new-subscription', function(err, subscription) {
246+
topic.subscribe('new-subscription', { reuseExisting: true }, function(err, subscription) {
247247
// Register listeners to start pulling for messages.
248248
function onError(err) {}
249249
function onMessage(message) {}

0 commit comments

Comments
 (0)