From e82f849118bb870f38be430819e434f34cebcce0 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Tue, 17 Nov 2020 04:16:10 +0100 Subject: [PATCH] Fix web instance log following lost on reconnect Fix the console view of the instance web interface losing the output subscription after a reconnect to the master server due to not re-subscribing to the outputs. --- packages/web_ui/src/util/websocket.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web_ui/src/util/websocket.jsx b/packages/web_ui/src/util/websocket.jsx index 61e7cdc6..86ea67ba 100644 --- a/packages/web_ui/src/util/websocket.jsx +++ b/packages/web_ui/src/util/websocket.jsx @@ -49,6 +49,10 @@ export class Control extends libLink.Link { } this.instanceOutputHandlers = new Map(); + + this.connector.on("connect", () => { + this.updateInstanceOutputSubscriptions().catch(console.error); + }); } async instanceOutputEventHandler(message) {