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

Retrieve GUID from subscription msg #33

Open
ShahNewazKhan opened this issue Sep 9, 2019 · 3 comments
Open

Retrieve GUID from subscription msg #33

ShahNewazKhan opened this issue Sep 9, 2019 · 3 comments

Comments

@ShahNewazKhan
Copy link

Is there a method to retrieve the guid that is returned when you publish the message on the subscription end?

@smitfrank
Copy link
Contributor

Look at: https://github.com/nats-io/stan.py/blob/master/stan/aio/client.py#L390

The PubAck object is returned when you publish a message and there should be a guid field in it.

@ShahNewazKhan
Copy link
Author

Look at: https://github.com/nats-io/stan.py/blob/master/stan/aio/client.py#L390

The PubAck object is returned when you publish a message and there should be a guid field in it.

Thanks for the feedback @smitfrank, however I was was asking about being able to retrieve it from the subscription end. Does any of these attributes hold the guid when the subscrition recieves the msg.

https://github.com/nats-io/stan.py/blob/master/stan/aio/client.py#L291-L295

@ShahNewazKhan
Copy link
Author

It doesn't look like he Msg object holds a reference to the guid available to the publisher https://github.com/nats-io/stan.py/blob/master/stan/aio/client.py#L695-L718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants