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

Method setToken

botloader-vscode/src/ws.ts:25–33  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

23 }
24
25 setToken(token: string) {
26 this.logToOutput("updated token", "Client");
27 this.token = token;
28 if (this.ws) {
29 this.ws.onclose = () => { };
30 this.ws.close();
31 }
32 this.open();
33 }
34
35 open() {
36 let url = this.baseUrl + "/api/ws";

Callers 1

activateFunction · 0.95

Calls 3

logToOutputMethod · 0.95
openMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected