Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Endpoints #46

Closed
stephenplusplus opened this issue Sep 28, 2016 · 2 comments
Closed

Custom Endpoints #46

stephenplusplus opened this issue Sep 28, 2016 · 2 comments
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@stephenplusplus
Copy link
Contributor

Is it possible to set a custom endpoint, for example, if trying to access an emulator?

@jmuk
Copy link
Contributor

jmuk commented Sep 28, 2016

The generated builder function has an optional field for server address, port, and grpc credentials (see https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/packages/pubsub/src/v1/publisher_api.js#L79). So,

var pubsubV1 = require('@google-cloud/pubsub').v1();
var publisherApi = pubsubV1.publisherApi({servicePath: 'localhost', port: 3000});
...

It'll connect to a different end point.

@stephenplusplus
Copy link
Contributor Author

Looks perfect, sorry that I missed that. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants