Discover number of connections from clients

#1

Is there any way to discover how many open connections there are to a given topic? My use case is that if no one is currently subscribed to a topic, I can free resources (devices) and power things down until somebody starts subscribing again. I’m still new to Autobahn, so I may have missed something.

0 Likes

#2

Hi Mark!

Glad that you’re using Autobahn - and this is the type of question that the mailing list exists for!

Crossbar.io offers what you want with the Meta-API - see http://crossbar.io/docs/Subscription-Meta-Events-and-Procedures/, which allow you to retrieve this information. I’m not sure whether/which other WAMP routers offer this.

Regards,

Alex

···

Am Samstag, 21. Mai 2016 00:08:58 UTC+2 schrieb Mark Harmison:

Is there any way to discover how many open connections there are to a given topic? My use case is that if no one is currently subscribed to a topic, I can free resources (devices) and power things down until somebody starts subscribing again. I’m still new to Autobahn, so I may have missed something.

0 Likes