Fixed a disconnect but, and unhoming on failed probe

This commit is contained in:
David Carley
2021-10-21 19:25:27 -07:00
parent 2571475700
commit 3710a3e1f6
6 changed files with 61 additions and 29 deletions

View File

@@ -441,7 +441,8 @@ class ClientConnection(object):
self.app.closed(self.ctrl)
def on_message(self, data): self.ctrl.mach.mdi(data)
def on_message(self, data):
self.ctrl.mach.mdi(data)
# Used by CAMotics
@@ -451,8 +452,11 @@ class WSConnection(ClientConnection, tornado.websocket.WebSocketHandler):
tornado.websocket.WebSocketHandler.__init__(
self, app, request, **kwargs)
def send(self, msg): self.write_message(msg)
def open(self): self.on_open()
def send(self, msg):
self.write_message(msg)
def open(self):
self.on_open()
# Used by Web frontend