0

I'm trying to monitor all topics published on a crossbar.io broker. My attempt so far is to subscribe to topic="" with matching policy of 'prefix' but that doesn't seem to work, whereas topic="a" with matching policy of 'prefix' does see all events for topics starting with 'a'.

Is there a way to monitor the whole lot?

Thickycat
  • 894
  • 6
  • 12
  • I'd recommend namespacing topics anyway, like `com.example.topic1`; then subscribing to the `com.example` prefix would do… – deceze Dec 15 '16 at 15:19
  • I agree that namespacing is good idea, but this is a privately used server on a LAN and could potentially have any topic published. We do have a home-grown broker application and that does allow the 'prefixed with ""' notation to match all - I was hoping crossbar had an equivalent. – Thickycat Dec 15 '16 at 15:55
  • This does indeed not seem to be possible. Could you file an issue with Crossbar.io (https://github.com/crossbario/crossbar/issues)? I don't know if there is a reason for why this shouldn't work, but Crossbar.io should not register the subscription if nothing will ever be published. – gzost Dec 16 '16 at 12:06
  • Ok, I've reported it as an issue - thanks! – Thickycat Dec 16 '16 at 16:09
  • I may have answered this myself, having read the spec yet again. The argument to the subscribe is a uri and the WAMP spec says that a uri cannot be an empty string and thus it is invalid. On the other hand, it would be nice if it worked... – Thickycat Jan 28 '17 at 10:01

0 Answers0