stan.py
stan.py copied to clipboard
Retrieve GUID from subscription msg
Is there a method to retrieve the guid
that is returned when you publish the message on the subscription end?
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.
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
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