runtime/WampClient.py
changeset 2434 07f48018b6f5
parent 2418 5587c490a070
child 2459 21164625b393
--- a/runtime/WampClient.py	Thu Oct 04 12:09:23 2018 +0300
+++ b/runtime/WampClient.py	Thu Oct 04 17:24:40 2018 +0300
@@ -28,6 +28,7 @@
 import json
 import os
 import re
+from builtins import str as text
 from autobahn.twisted import wamp
 from autobahn.twisted.websocket import WampWebSocketClientFactory, connectWS
 from autobahn.wamp import types, auth
@@ -131,7 +132,7 @@
             yield self.register(GetCallee(name), u'.'.join((ID, name)), registerOptions)
 
         for name in SubscribedEvents:
-            yield self.subscribe(GetCallee(name), unicode(name))
+            yield self.subscribe(GetCallee(name), text(name))
 
         for func in DoOnJoin:
             yield func(self)