WampSharp icon indicating copy to clipboard operation
WampSharp copied to clipboard

Access MetaAPI in Router

Open jensweigele opened this issue 6 years ago • 1 comments

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?

jensweigele avatar Jun 05 '19 09:06 jensweigele

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.

darkl avatar Jun 05 '19 12:06 darkl