1

I am using Crossbar (WAMP Protocol) router for my node.js application.As router is independent to our application I am not able to do the below operations with Crossbar. Is there any official API available to achieve the below functionality.

  1. Disconnection notification of a subscriber for a specific topic?
  2. List of subscribers for a specific topic?
  3. New subscription notification for a specific topic when a new subscriber subscribes it.

Thanks in advance.

Emile Cormier
  • 28,391
  • 15
  • 94
  • 122
Joshua
  • 442
  • 1
  • 5
  • 20

1 Answers1

3

First, yes, a WAMP router should be looked at as a black-box, and hence no app code should dive into router internals.

But there are scenarios (like yours), where an app has a legitimate need to access meta information from the router.

WAMP has so-called meta events and meta procedures for this. E.g. here is how Crossbar.io exposes session information via meta-events.

The information you are after seem all be related to "subscribers". In the WAMP spec:

These are not yet (2015/01) implemented in Crossbar.io, but we'll have it.

oberstet
  • 21,353
  • 10
  • 64
  • 97