I'm pretty much using the following example:
But, the broker is timing me out after around 4.5 minutes. I've been thinking maybe I could use the session method? But can't work out how to implement that.
So, I tried to use heartbeat. But when I connect to broker using version_1_1, I get the following error:
stompest.error.StompProtocolError: Invalid SUBSCRIBE frame (id header mandatory in version 1.1) [headers={'ack': 'client-individual', 'destination': '/topic/c.c.p.v.ism.advisory'}]
I'm not sure how to set id header? The documentation I found just mentions id, but doesn't specifically say how to set it.
Any help for this noob would be hugely appreciated! :)