diff --git a/backend/app/handlers/SocketHandler.py b/backend/app/handlers/SocketHandler.py index ab0a0aba1..2d08d8fa3 100644 --- a/backend/app/handlers/SocketHandler.py +++ b/backend/app/handlers/SocketHandler.py @@ -5,6 +5,14 @@ class ChameleonWebSocket(tornado.websocket.WebSocketHandler): def check_origin(self, origin): return True def open(self): + self.write_message(json.dumps( + { + 'cam1':{ + 'pipeline':1, + 'exposure':12 + } + } + )) print("WebSocket opened") def on_message(self, message): diff --git a/chameleon-client/package-lock.json b/chameleon-client/package-lock.json index f6adf12f0..d34e56726 100644 --- a/chameleon-client/package-lock.json +++ b/chameleon-client/package-lock.json @@ -3490,7 +3490,8 @@ "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true + "dev": true, + "optional": true }, "coa": { "version": "2.0.2", @@ -5848,11 +5849,13 @@ }, "minimist": { "version": "0.0.8", - "bundled": true + "bundled": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -5869,6 +5872,7 @@ "mkdirp": { "version": "0.5.1", "bundled": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -6028,7 +6032,8 @@ }, "safe-buffer": { "version": "5.1.2", - "bundled": true + "bundled": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -6120,7 +6125,8 @@ }, "yallist": { "version": "3.0.3", - "bundled": true + "bundled": true, + "optional": true } } }, @@ -9666,7 +9672,8 @@ "version": "4.0.8", "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", "integrity": "sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ=", - "dev": true + "dev": true, + "optional": true }, "rx-lite-aggregates": { "version": "4.0.8", @@ -13605,7 +13612,8 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true + "bundled": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -13970,7 +13978,8 @@ }, "safe-buffer": { "version": "5.1.1", - "bundled": true + "bundled": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -14018,6 +14027,7 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -14056,11 +14066,13 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "yallist": { "version": "3.0.2", - "bundled": true + "bundled": true, + "optional": true } } }, diff --git a/chameleon-client/src/App.vue b/chameleon-client/src/App.vue index 521a3c772..1c4bc6c00 100644 --- a/chameleon-client/src/App.vue +++ b/chameleon-client/src/App.vue @@ -11,7 +11,7 @@ Vision Input - Threshold + Threshold