Skip to content

v1.5.0

Latest
Compare
Choose a tag to compare
@zaberSatnam zaberSatnam released this 20 Oct 20:36
· 3 commits to master since this release
f5d7125
  • It is possible that if the same client subscribes to the same URI multiple times at the same time, then the WAMP broker might given both subscriptions the same subscription ID
  • swampyer can now handle this case and will call all handlers for the same subscription ID if an event occurs
    • The subscribe() method now returns an object with the subscription ID and the original subscription handler itself
      • This will be useful for uniquely unsubscribing a given handler while leaving any other subscriptions on the same subscription ID unchanged
    • The unsubscribe() method can now take the object returned by subscribe() and only unsubscribes the given handler by default
      • If there was only 1 handler for the subscription ID or if the unsubscribeAll argument is set to true then it will initiate a full unsubscribe from the WAMP router
      • Otherwise, it will just remove the handler from the list of handlers to call when an event occurs on the given subscription ID