***

title: "PubSubPlugin"
generated: true
---------------

<GenerationInfo sourceFile="packages/pub-sub-plugin/src/plugin.ts" sourceLine="22" packageName="@vendure-community/pub-sub-plugin" />

This plugin uses Google Cloud Pub/Sub to implement a job queue strategy for Vendure.

## Installation

Note: To use this plugin, you need to manually install the `@google-cloud/pubsub` package:

```shell
npm install @google-cloud/pubsub@^4.11.0
```

```ts title="Signature"
class PubSubPlugin {
    init(options: PubSubOptions) => Type<PubSubPlugin>;
}
```

<div className="members-wrapper">

### init

\<MemberInfo kind="method" type={`(options: PubSubOptions) => Type<<a href='/current/community-plugins/reference/pub-sub-plugin/#pubsubplugin'>PubSubPlugin</a>>`}   />

</div>
