Commit 62cda0d8 authored by Geordie Bilkey's avatar Geordie Bilkey

Sends status update as soon as client connects

parent 1bd51e92
...@@ -146,6 +146,7 @@ class ConstructSocketHandler(tornado.websocket.WebSocketHandler): ...@@ -146,6 +146,7 @@ class ConstructSocketHandler(tornado.websocket.WebSocketHandler):
'jobs': prontserve.jobs.public_list(), 'jobs': prontserve.jobs.public_list(),
'continous_movement': False 'continous_movement': False
}}) }})
self.on_sensor_changed()
print "WebSocket opened. %i sockets currently open." % len(prontserve.listeners) print "WebSocket opened. %i sockets currently open." % len(prontserve.listeners)
def send(self, dict_args = {}, **kwargs): def send(self, dict_args = {}, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment