MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / traceWsLifecycle

Function traceWsLifecycle

apps/kimi-web/src/debug/trace.ts:238–247  ·  view source on GitHub ↗
(event: string, detail?: unknown)

Source from the content-addressed store, hash-verified

236// ---------------------------------------------------------------------------
237
238export function traceWsLifecycle(event: string, detail?: unknown): void {
239 if (!isTraceEnabled()) return;
240 push({
241 source: 'ws',
242 kind: 'ws:lifecycle',
243 eventType: event,
244 label: `ws ${event}`,
245 detail: detailOf(detail),
246 });
247}
248
249/** Outbound client frame (client_hello / subscribe / unsubscribe / abort / pong). */
250export function traceWsOut(frame: unknown): void {

Callers 2

connectMethod · 0.90
scheduleReconnectMethod · 0.90

Calls 3

isTraceEnabledFunction · 0.85
detailOfFunction · 0.85
pushFunction · 0.70

Tested by

no test coverage detected