Unfortunately, there is no public, supported API currently for that.
I agree that something like myWampFactory.getSubscribers(someTopic)
would be useful in certain situations. If you care, please file an issue on GitHub so we can track the feature request.
Of the 2 workarouns you mention, overriding onClientSubscribed
seems to lead to a 2nd bookeeping of subscriptions, which I find even more unsatisfying than accessing internals (myFactory.subscriptions
).