--- a/runtime/WampClient.py Tue Oct 02 15:57:26 2018 +0200
+++ b/runtime/WampClient.py Wed Oct 03 00:05:32 2018 +0200
@@ -144,10 +144,11 @@
_transportFactory = None
print(_('WAMP session left'))
- def publishWithOwnID(eventID, value):
+ def publishWithOwnID(self, eventID, value):
ID = self.config.extra["ID"]
self.publish(unicode(ID+'.'+eventID), value)
+
class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory):
def __init__(self, config, *args, **kwargs):
@@ -343,13 +344,16 @@
global _PySrv
_PySrv = pysrv
+
def PublishEvent(eventID, value):
if getWampStatus() == "Attached":
- _WampSession.publish(eventID, value)
+ _WampSession.publish(eventID, value)
+
def PublishEventWithOwnID(eventID, value):
if getWampStatus() == "Attached":
- _WampSession.publishWithOwnID(eventID, value)
+ _WampSession.publishWithOwnID(eventID, value)
+
# WEB CONFIGURATION INTERFACE
WAMP_SECRET_URL = "secret"