From c0b01f1013fb82c1bd72a0e5bae0545037e43869 Mon Sep 17 00:00:00 2001 From: ori agranat Date: Sat, 9 Mar 2019 23:59:19 +0200 Subject: [PATCH] fixed websocket issue --- Python/app/ChameleonVisionApp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/app/ChameleonVisionApp.py b/Python/app/ChameleonVisionApp.py index b1f979578..73ee7c8ab 100644 --- a/Python/app/ChameleonVisionApp.py +++ b/Python/app/ChameleonVisionApp.py @@ -12,8 +12,8 @@ define("port", default=8888, help="run on the given port", type=int) class ChameleonApplication(tornado.web.Application): def __init__(self): handlers = [(r"/", MainHandler), - (r"/(.*)", tornado.web.StaticFileHandler, {'path': os.path.join(os.path.dirname(__file__), "../../Site")}), (r"/websocket", ChameleonWebSocket), + (r"/(.*)", tornado.web.StaticFileHandler, {'path': os.path.join(os.path.dirname(__file__), "../../Site")}), (r"/CSS/(.*)", tornado.web.StaticFileHandler, {'path': os.path.join(os.path.dirname(__file__), "../../Site/CSS")}), (r"/JS/(.*)", tornado.web.StaticFileHandler, {'path': os.path.join(os.path.dirname(__file__), "../../Site/JS")}), (r"/assets/(.*)", tornado.web.StaticFileHandler, {'path': os.path.join(os.path.dirname(__file__), "../../Site/assets")})]