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

Method constructor

botloader-vscode/src/ws.ts:16–23  ·  view source on GitHub ↗
(baseUrl: string, onLogMessage: (msg: LogItem) => void, token?: string)

Source from the content-addressed store, hash-verified

14 activeSubs: string[] = [];
15
16 constructor(baseUrl: string, onLogMessage: (msg: LogItem) => void, token?: string) {
17 this.token = token;
18 this.baseUrl = baseUrl;
19 this.onLogMessage = onLogMessage;
20 if (token) {
21 this.open();
22 }
23 }
24
25 setToken(token: string) {
26 this.logToOutput("updated token", "Client");

Callers

nothing calls this directly

Calls 1

openMethod · 0.95

Tested by

no test coverage detected