WAMP : ensure that unicode string is passed for published events IDs
authorEdouard Tisserant
Tue, 30 Oct 2018 09:46:46 +0100
changeset 2326 d42ae2877b6e
parent 2325 71593d3f880b
child 2327 569d7fbc0bd4
WAMP : ensure that unicode string is passed for published events IDs
runtime/WampClient.py
--- a/runtime/WampClient.py	Tue Oct 30 09:45:47 2018 +0100
+++ b/runtime/WampClient.py	Tue Oct 30 09:46:46 2018 +0100
@@ -347,12 +347,12 @@
 
 def PublishEvent(eventID, value):
     if getWampStatus() == "Attached":
-        _WampSession.publish(eventID, value)
+        _WampSession.publish(unicode(eventID), value)
 
 
 def PublishEventWithOwnID(eventID, value):
     if getWampStatus() == "Attached":
-        _WampSession.publishWithOwnID(eventID, value)
+        _WampSession.publishWithOwnID(unicode(eventID), value)
 
 
 # WEB CONFIGURATION INTERFACE