Search code examples
callbackpublish-subscribeautobahn

A callback for publish method in Autobahn?


I wonder why there is no callback defined on the publish method in AutobahnJS? I think it would be useful for the client who tries to publish something to know whether their publish call succeeded or not and react accordingly. I wonder if other frameworks that support pub/sub have such a callback for publishing.


Solution

  • How do you define "success" for a publish? Depending on that, PubSub will get very different. Today, WAMP PubSub is a Best-Effort service. WAMPv2 might get other QoS levels in addition.