added time stamp and removed websocket

This commit is contained in:
ori
2019-08-15 09:07:52 -07:00
parent 771958fb71
commit e068fe3cb2
2 changed files with 9 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ from ..classes.Exceptions import NoCameraConnectedException
from ..classes.SettingsManager import SettingsManager
web_socket_clients = []
web_socket_clients = set()
def send_all_async(message):
@@ -17,6 +17,7 @@ def send_all_async(message):
pass
class ChameleonWebSocket(tornado.websocket.WebSocketHandler):
actions = {}
@@ -39,7 +40,7 @@ class ChameleonWebSocket(tornado.websocket.WebSocketHandler):
def open(self):
self.send_full_settings()
if self not in web_socket_clients:
web_socket_clients.append(self)
web_socket_clients.add(self)
print("WebSocket opened")