Detect all topics for which publishers exist

#1

Hi,

Is there any way to get a list of publishers, or find out what topics some publishers are publishing to?

I know t’s possible to find a list of subscribers, or sessions, and find out what topics they are subscribed to:

Find all subscribers

session.call(“wamp.subscription.list”).then(session.log, session.log)

topic URI can be found in the return args

session.call(“wamp.subscription.get”, [3540230488190230]).then(session.log, session.log)

``

I want to do something similar, using a crossbar.io router, but for Publishers instead of Subscribers. Mainly interested in all the topics which have 1 or more publishers (with 0 or more subscribers). Is such a thing possible, or are there any work-arounds?

Thanks,

Muhammad

0 Likes

#2

Hi,

  message publication does not require any kind of pre-announcment

(there is no register of publisher), so there is no WAMP meta API
for that.

  that being said, crossbarfx (an extended version of crossbar)

does have a feature called “message tracing”, which allows you to
tap into all WAMP messaging running through a node

  crossbarfx also has message persistency for WAMP pubsub events,

and the data can be queried (via a WAMP API) or analyzed directly
from Jupyter

Cheers,

/Tobias

···

https://crossbario.com/docs/crossbarfx/dataplane/message_tracing.htmlhttps://crossbario.com/docs/crossbarfx/management/remotecontrol/examples.html#message-tracinghttps://crossbario.com/docs/crossbarfx/dataplane/event_store.html
Am 18.01.19 um 17:04 schrieb Muhammad
Bhatti:

Hi,

        Is there any way to get a list of publishers, or find out

what topics some publishers are publishing to?

    I know t's possible to find a list of subscribers, or sessions,

and find out what topics they are subscribed to:

Find all subscribers

                session.call("wamp.subscription.list").then(session.log,
                session.log)

                                  # topic URI can be found

in the return args

                session.call("wamp.subscription.get", [3540230488190230]).then(session.log,
                session.log)

``

        I want to do something similar, using a crossbar.io

router, but for Publishers instead of Subscribers. Mainly
interested in all the topics which have 1 or more publishers
(with 0 or more subscribers). Is such a thing possible, or
are there any work-arounds?

Thanks,

Muhammad

  You received this message because you are subscribed to the Google

Groups “Crossbar” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to crossbario+...@googlegroups.com.

  To post to this group, send email to cross...@googlegroups.com.

  To view this discussion on the web visit [https://groups.google.com/d/msgid/crossbario/17f2d477-9a7e-4845-83d0-a201d3887a2d%40googlegroups.com](https://groups.google.com/d/msgid/crossbario/17f2d477-9a7e-4845-83d0-a201d3887a2d%40googlegroups.com?utm_medium=email&utm_source=footer).

  For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
0 Likes