This repository was archived by the owner on Mar 17, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,3 +8,19 @@ introduction: |-
88 [Pub/Sub quickstart](https://cloud.google.com/pubsub/docs/quickstart-client-libraries),
99 [publisher](https://cloud.google.com/pubsub/docs/publisher), and [subscriber](https://cloud.google.com/pubsub/docs/subscriber)
1010 guides.
11+ body : |-
12+ ## Running gRPC C++ bindings
13+
14+ For some workflows and environments it might make sense to use the C++ gRPC implementation,
15+ instead of the default one (see: [#770](https://github.com/googleapis/nodejs-pubsub/issues/770)):
16+
17+ To configure `@google-cloud/pubsub` to use an alternative `grpc` transport:
18+
19+ 1. `npm install grpc`, adding `grpc` as a dependency.
20+ 1. instantiate `@google-cloud/pubsub` with `grpc`:
21+
22+ ```js
23+ const {PubSub} = require('@google-cloud/pubsub');
24+ const grpc = require('grpc');
25+ const pubsub = new PubSub({grpc});
26+ ```
Original file line number Diff line number Diff line change @@ -79,7 +79,21 @@ async function quickstart(
7979}
8080
8181```
82+ ## Running gRPC C++ bindings
8283
84+ For some workflows and environments it might make sense to use the C++ gRPC implementation,
85+ instead of the default one (see: [ #770 ] ( https://github.com/googleapis/nodejs-pubsub/issues/770 ) ):
86+
87+ To configure ` @google-cloud/pubsub ` to use an alternative ` grpc ` transport:
88+
89+ 1 . ` npm install grpc ` , adding ` grpc ` as a dependency.
90+ 1 . instantiate ` @google-cloud/pubsub ` with ` grpc ` :
91+
92+ ``` js
93+ const {PubSub } = require (' @google-cloud/pubsub' );
94+ const grpc = require (' grpc' );
95+ const pubsub = new PubSub ({grpc});
96+ ```
8397
8498
8599## Samples
You can’t perform that action at this time.
0 commit comments