Detect all topics for which publishers exist

35 views
Skip to first unread message

Muhammad Bhatti

unread,
Jan 18, 2019, 11:04:39 AM1/18/19
to Crossbar
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

Tobias Oberstein

unread,
Jan 25, 2019, 3:27:30 AM1/25/19
to cross...@googlegroups.com, Muhammad Bhatti

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

https://crossbario.com/docs/crossbarfx/dataplane/message_tracing.html

https://crossbario.com/docs/crossbarfx/management/remotecontrol/examples.html#message-tracing

crossbarfx also has message persistency for WAMP pubsub events, and the data can be queried (via a WAMP API) or analyzed directly from Jupyter

https://crossbario.com/docs/crossbarfx/dataplane/event_store.html

Cheers,

/Tobias

Am 18.01.19 um 17:04 schrieb Muhammad Bhatti:
--
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.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages