Reanimate dead socket
This commit is contained in:
parent
3b91151f3e
commit
033b5d9640
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user