-
Notifications
You must be signed in to change notification settings - Fork 595
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
Pub/Sub subscription push endpoint #1744
Comments
Hm - seems like you can't set a push-endpoint for a subscription (at least according to our docs: https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.43.0/pubsub/topic?method=subscribe) We should probably allow this even though it wouldn't be a typical subscription you can listen on (since the requests will be going to the endpoint required) |
Yes, this is a case of poor docs on our part. You can indeed get the push endpoint through: var topic = pubsub.topic('[your-topic-name]')
topic.subscribe('[your-subscription-name]', {
ackDeadlineSeconds: 30,
pushConfig: {
pushEndpoint: 'https://[your-app-id].appspot.com/pubsub/push?token=[your-token]'
}
}, function (err, subscription) {}) Please let me know if that works! |
This works - thanks :) |
I have a requirement of one topic and many push subscription. |
Any consideration to have this API implemented?
The text was updated successfully, but these errors were encountered: