Code-Sharp / WampSharp

A C# implementation of WAMP (The Web Application Messaging Protocol)
http://wampsharp.net
Other
385 stars 84 forks source link

Access MetaAPI in Router #299

Open jensweigele opened 5 years ago

jensweigele commented 5 years ago

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?

darkl commented 5 years ago

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.