--- a/runtime/WampClient.py Fri Mar 22 11:10:37 2019 +0100
+++ b/runtime/WampClient.py Fri Mar 22 13:26:31 2019 +0100
@@ -135,7 +135,7 @@
self.register(GetCallee(name), u'.'.join((ID, name)), registerOptions)
for name in SubscribedEvents:
- self.subscribe(GetCallee(name), unicode(name))
+ self.subscribe(GetCallee(name), text(name))
for func in DoOnJoin:
func(self)
@@ -151,7 +151,7 @@
def publishWithOwnID(self, eventID, value):
ID = self.config.extra["ID"]
- self.publish(unicode(ID+'.'+eventID), value)
+ self.publish(text(ID+'.'+eventID), value)
class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory):
@@ -343,12 +343,12 @@
def PublishEvent(eventID, value):
if getWampStatus() == "Attached":
- _WampSession.publish(unicode(eventID), value)
+ _WampSession.publish(text(eventID), value)
def PublishEventWithOwnID(eventID, value):
if getWampStatus() == "Attached":
- _WampSession.publishWithOwnID(unicode(eventID), value)
+ _WampSession.publishWithOwnID(text(eventID), value)
# WEB CONFIGURATION INTERFACE