MCPcopy Create free account
hub / github.com/denoland/std / constructor

Method constructor

http/server_sent_event_stream.ts:95–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93export class ServerSentEventStream
94 extends TransformStream<ServerSentEventMessage, Uint8Array> {
95 constructor() {
96 super({
97 transform: (message, controller) => {
98 controller.enqueue(stringify(message));
99 },
100 });
101 }
102}

Callers

nothing calls this directly

Calls 1

stringifyFunction · 0.70

Tested by

no test coverage detected