MCPcopy
hub / github.com/cpaczek/skylight / onFrame

Method onFrame

tracker/src/video/stream.ts:98–101  ·  view source on GitHub ↗
(fn: (frame: Buffer) => void)

Source from the content-addressed store, hash-verified

96 }
97
98 onFrame(fn: (frame: Buffer) => void): () => void {
99 this.listeners.add(fn);
100 return () => this.listeners.delete(fn);
101 }
102
103 /** Attach an HTTP response as an MJPEG (multipart/x-mixed-replace) client. */
104 addClient(res: Response): void {

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected