MCPcopy
hub / github.com/cpaczek/skylight / patchConfig

Method patchConfig

tracker/src/upstream.ts:70–78  ·  view source on GitHub ↗
(patch: Partial<Config>)

Source from the content-addressed store, hash-verified

68 }
69
70 patchConfig(patch: Partial<Config>): void {
71 const msg: ClientMessage = { type: "patchConfig", patch };
72 if (this.ws?.readyState === WebSocket.OPEN) {
73 this.ws.send(JSON.stringify(msg));
74 }
75 // Optimistic local merge so the tracker reacts immediately.
76 this.config = mergeConfig(this.config, patch);
77 this.events.onConfig?.(this.config);
78 }
79
80 private open(): void {
81 const ws = new WebSocket(this.url);

Callers

nothing calls this directly

Calls 3

mergeConfigFunction · 0.85
onConfigMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected