MCPcopy Create free account
hub / github.com/backnotprop/plannotator / serializeSSEEvent

Function serializeSSEEvent

packages/shared/external-annotation.ts:38–40  ·  view source on GitHub ↗
(event: ExternalAnnotationEvent<T>)

Source from the content-addressed store, hash-verified

36
37/** Encode an event as an SSE `data:` line. */
38export function serializeSSEEvent<T>(event: ExternalAnnotationEvent<T>): string {
39 return `data: ${JSON.stringify(event)}\n\n`;
40}
41
42// ---------------------------------------------------------------------------
43// Input validation — shared helpers

Callers 4

startFunction · 0.90
handleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected