WampSharp
WampSharp copied to clipboard
Access MetaAPI in Router
I'm wondering if it's possible to access the MetaAPI from within the Router with the WampSharp Meta API Interfaces.
As far as I understand the documentation and the code, it is only possible to consume this information from a Client Connection (with the predefined interfaces). Within the router implementation I have to subscribe to those topics my self or listen directly to the native C# events and build up an own list of e.g. connected clients - right?
I currently don't expose the underlying IWampRealmProxy so it's not possible to do this directly. You can create a WampChannel that uses InMemoryBinding/InMemoryTransport in order to obtain a channel and then use its RealmProxy property to access these members. See #250, #261 for more information.