diff -r 259df9ecf9ca -r 35d6b9321ffd runtime/WampClient.py --- a/runtime/WampClient.py Mon Mar 19 12:18:07 2018 +0100 +++ b/runtime/WampClient.py Tue Mar 27 10:11:04 2018 +0200 @@ -73,7 +73,7 @@ class WampSession(wamp.ApplicationSession): def onConnect(self): if "secret" in self.config.extra: - user = self.config.extra["ID"].encode('utf8') + user = self.config.extra["ID"] self.join(u"Automation", [u"wampcra"], user) else: self.join(u"Automation") @@ -91,7 +91,6 @@ global _WampSession _WampSession = self ID = self.config.extra["ID"] - print('WAMP session joined by :', ID) for name in ExposedCalls: regoption = types.RegisterOptions(u'exact', u'last') yield self.register(GetCallee(name), u'.'.join((ID, name)), regoption) @@ -102,6 +101,8 @@ for func in DoOnJoin: yield func(self) + print(_('WAMP session joined (%s) by:' % time.ctime()), ID) + def onLeave(self, details): global _WampSession _WampSession = None