Function
emit
(
controller: TransformStreamDefaultController<Uint8Array>,
chunk: Record<string, unknown>,
)
Source from the content-addressed store, hash-verified
| 221 | let emittedRole = false |
| 222 | |
| 223 | function emit( |
| 224 | controller: TransformStreamDefaultController<Uint8Array>, |
| 225 | chunk: Record<string, unknown>, |
| 226 | ) { |
| 227 | controller.enqueue(encoder.encode(`data: ${JSON.stringify(chunk)}\n\n`)) |
| 228 | } |
| 229 | |
| 230 | function processEvent( |
| 231 | controller: TransformStreamDefaultController<Uint8Array>, |
Tested by
no test coverage detected