Function
renderSseEvent
(event: Sse.EventEncoded)
Source from the content-addressed store, hash-verified
| 1080 | const reservedStreamFailureEvent = "effect/httpapi/stream/failure" |
| 1081 | |
| 1082 | function renderSseEvent(event: Sse.EventEncoded) { |
| 1083 | return Sse.encoder.write({ |
| 1084 | _tag: "Event", |
| 1085 | event: event.event, |
| 1086 | id: event.id, |
| 1087 | data: event.data |
| 1088 | }) |
| 1089 | } |
| 1090 | |
| 1091 | const toResponseSuccessSchema = toResponseSchema(HttpApiSchema.getStatusSuccessSchema) |
| 1092 | const toResponseErrorSchemaPlain = toResponseSchema(HttpApiSchema.getStatusErrorSchema) |
Callers
nothing calls this directly
Tested by
no test coverage detected