MCPcopy Create free account
hub / github.com/Botloader/botloader / wsOnClose

Method wsOnClose

botloader-vscode/src/ws.ts:103–111  ·  view source on GitHub ↗
(ev: CloseEvent)

Source from the content-addressed store, hash-verified

101 }
102
103 wsOnClose(ev: CloseEvent) {
104 this.logToOutput(`ws closed ${ev.reason}, reconnecting in 5 sec...`, "Client");
105 this.subQueue = this.activeSubs;
106
107 let that = this;
108 setTimeout(() => {
109 that.open();
110 }, 5000);
111 }
112
113 handleScriptLogMessage(msg: WsEventScriptLogMessage) {
114 console.log("Script log message yoo");

Callers

nothing calls this directly

Calls 2

logToOutputMethod · 0.95
openMethod · 0.45

Tested by

no test coverage detected