Code-Sharp / WampSharp

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

Meta API Kill procedure raises no_such_procedure error #326

Closed STL1811 closed 3 years ago

STL1811 commented 3 years ago

Hello, Describe the bug Even if Meta Api Service is activated on the realm, wamp.session.kill procedures don't work. they raise no_such_procedure error. Note that other procedures such as wamp.session.list or wamp.session.get returns expected result.

To Reproduce after adding IDisposable disposable = realm.HostMetaApiService(); javascript call wamp.session.list on this realm using autobahn.js the result is OK then javascript call wamp.session.kill on a session_id or call wamp.session.kill_all or call wamp.session.kill_by_authid and they raise no_such_procedure error

External WAMP libraries involved autobahn.min.js V20.9.2

.NET platform variant WAMPSharp V20.1.1 Behavior is the same on

darkl commented 3 years ago

You need to activate Session Management Service using realm.HostSessionManagementService().

Elad

STL1811 commented 3 years ago

Thank you very much, Elad. It's OK now.