MCPcopy Create free account
hub / github.com/CopilotKit/aimock / buildErrorRealtimeEvent

Function buildErrorRealtimeEvent

src/ws-realtime.ts:290–298  ·  view source on GitHub ↗
(
  ws: WebSocketConnection,
  message: string,
  isBeta: boolean,
  type = "invalid_request_error",
  code?: string,
)

Source from the content-addressed store, hash-verified

288}
289
290function buildErrorRealtimeEvent(
291 ws: WebSocketConnection,
292 message: string,
293 isBeta: boolean,
294 type = "invalid_request_error",
295 code?: string,
296): void {
297 sendEvent(ws, { type: "error", error: { message, type, code } }, isBeta);
298}
299
300// ─── Main handler ───────────────────────────────────────────────────────────
301

Callers 3

handleWebSocketRealtimeFunction · 0.85
processMessageFunction · 0.85
handleResponseCreateFunction · 0.85

Calls 1

sendEventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…