Skip to content

Commit

Permalink
Merge pull request #475 from ccoeurderoy/feat/topic-options
Browse files Browse the repository at this point in the history
[FEAT]: Add topic name to listen options
  • Loading branch information
Charles Coeurderoy authored Jun 16, 2023
2 parents 4cfd6ae + f6affb0 commit 5390552
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 129 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ If the chosen transport is Google Cloud PubSub, then `options` would be:
- `sub`: Options applied to the subscription instance (see also [`setOptions` method](https://googleapis.dev/nodejs/pubsub/latest/Subscription.html#setOptions))
- `create`: Options applied to the `createSubscription` method (have a look at [Create Subscription options](https://googleapis.dev/nodejs/pubsub/latest/Topic.html#createSubscription))
- `topicOptions`: Options applied to the created topic (have a look at [Topic options](https://googleapis.dev/nodejs/pubsub/latest/Topic.html#get))
- `topicName`: Set the topic name. By default, it uses the default name with a prefix.

### `pubsub.emit(event, payload, opts)`

Expand Down
Loading

0 comments on commit 5390552

Please sign in to comment.