MCPcopy
hub / github.com/marimo-team/marimo / onError

Method onError

packages/lsp/index.ts:82–89  ·  view source on GitHub ↗
(callback: (message: string) => void)

Source from the content-addressed store, hash-verified

80 }
81
82 onError(callback: (message: string) => void): void {
83 this.webSocket.onerror = (event: ErrorEvent) => {
84 this.logger.error("WebSocket error:", event);
85 if ("message" in event) {
86 callback(event.message);
87 }
88 };
89 }
90
91 onClose(callback: (code: number, reason: string) => void): void {
92 this.webSocket.onclose = (event: CloseEvent) => {

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.50
errorMethod · 0.45

Tested by

no test coverage detected