MCPcopy
hub / github.com/simstudioai/sim / createSSEChunk

Function createSSEChunk

apps/sim/lib/core/utils/sse.test.ts:27–29  ·  view source on GitHub ↗
(data: object)

Source from the content-addressed store, hash-verified

25}
26
27function createSSEChunk(data: object): Uint8Array {
28 return new TextEncoder().encode(`data: ${JSON.stringify(data)}\n\n`)
29}
30
31describe('SSE_HEADERS', () => {
32 it.concurrent('should have correct Content-Type', () => {

Callers 1

sse.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected