Set WAMP registration option so that reconnecting while earlier session still didn't timeout is possible (in case of connection lost, for example).
authorEdouard Tisserant
Tue, 09 Jan 2018 14:52:56 +0100
changeset 1892 daf40a1e7607
parent 1891 66043243c246
child 1893 971de876b1af
Set WAMP registration option so that reconnecting while earlier session still didn't timeout is possible (in case of connection lost, for example).
runtime/WampClient.py
--- a/runtime/WampClient.py	Tue Jan 09 14:50:41 2018 +0100
+++ b/runtime/WampClient.py	Tue Jan 09 14:52:56 2018 +0100
@@ -74,7 +74,8 @@
         ID = self.config.extra["ID"]
         print('WAMP session joined by :', ID)
         for name in ExposedCalls:
-            yield self.register(GetCallee(name), '.'.join((ID, name)))
+            regoption = types.RegisterOptions(u'exact',u'last',None, None)
+            yield self.register(GetCallee(name), '.'.join((ID, name)), regoption)
 
         for name in SubscribedEvents:
             yield self.subscribe(GetCallee(name), name)