--- a/runtime/WampClient.py Wed Jan 10 15:36:03 2018 +0100
+++ b/runtime/WampClient.py Thu Jan 11 12:48:49 2018 +0100
@@ -54,8 +54,13 @@
+# Those two lists are meant to be filled by customized runtime +""" crossbar Events to register to """ +""" things to do on join (callables) """ @@ -88,14 +93,14 @@
def onJoin(self, details):
- ID = self.config.extra["ID"]
+ ID = self.config.extra["ID"] # this is unicode print('WAMP session joined by :', ID)
for name in ExposedCalls:
regoption = types.RegisterOptions(u'exact',u'last',None, None)
- yield self.register(GetCallee(name), '.'.join((ID, name)), regoption)
+ yield self.register(GetCallee(name), u'.'.join((ID, name)), regoption) for name in SubscribedEvents:
- yield self.subscribe(GetCallee(name), name)
+ yield self.subscribe(GetCallee(name), unicode(name)) @@ -150,7 +155,7 @@
# create a WAMP application session factory
component_config = types.ComponentConfig(
realm=WSClientConf["realm"],
+ extra=WSClientConf) # pass a dict containing unicode values session_factory = wamp.ApplicationSessionFactory(
session_factory.session = WampSession