diff --git a/jirs-client/js/index.js b/jirs-client/js/index.js index 3762292c..d783fa7f 100644 --- a/jirs-client/js/index.js +++ b/jirs-client/js/index.js @@ -23,6 +23,9 @@ import("../pkg/index.js").then(module => { const array = new Uint8Array(arrayBuffer); module.handle_ws_message(array); }; + ws.onclose = () => { + setTimeout(() => buildWebSocket(), 600); + }; }; buildWebSocket();