Skip to content

Commit

Permalink
Merge pull request apache#34 from shustsud/Add_subscription_type_to_e…
Browse files Browse the repository at this point in the history
…xamples

Add subscription type to examples.
  • Loading branch information
nkurihar committed Jun 13, 2019
2 parents 1d03ff6 + d95f5d1 commit 3fa417f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/consumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const Pulsar = require('../index.js');
const consumer = await client.subscribe({
topic: 'persistent://public/default/my-topic',
subscription: 'sub1',
subscriptionType: 'Shared',
ackTimeoutMs: 10000,
});

Expand Down
1 change: 1 addition & 0 deletions examples/consumer_tls_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const Pulsar = require('../index.js');
const consumer = await client.subscribe({
topic: 'persistent://public/default/my-topic',
subscription: 'sub1',
subscriptionType: 'Shared',
});

// Receive messages
Expand Down

0 comments on commit 3fa417f

Please sign in to comment.