MCPcopy Create free account
hub / github.com/Noumena-Network/code / encodeSseFrame

Function encodeSseFrame

src/services/api/openAICompatWsV2Native.ts:119–121  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

117}
118
119function encodeSseFrame(data: string): Uint8Array {
120 return new TextEncoder().encode(`data: ${data}\n\n`)
121}
122
123function isRequestNotification(message: Record<string, unknown>, requestId: string): boolean {
124 const params = message.params

Callers 1

pullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected