From 32a5fc7a69c8319a00c94701962ea5470be84f50 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 23 Jun 2023 11:55:34 +0200 Subject: [PATCH] added management of other kind of message --- ccp/js/executionhistorycontroller.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index 9c70943..666db40 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -8,7 +8,7 @@ class CCPExecutionHistory extends HTMLElement { #data = []; #pending = []; #filtered = []; - #socket = null; + #sockets = null; #interval = null; #searchfield = null; #fileupload = null; @@ -271,6 +271,10 @@ class CCPExecutionHistory extends HTMLElement { this.#socket = new WebSocket(this.#broadcasturl + "/executions"); this.#socket.onmessage = event=>{ const data = JSON.parse(event.data) + if(!data.jobID){ + console.log("New logs " + event.data) + return + } let exec = this.#data.filter(e=>e.id === data.jobID)[0] if(exec){ this.refreshExecution(exec.id)