MCPcopy Create free account
hub / github.com/EvoMap/evolver / readSseStream

Function readSseStream

test/proxyBedrock.test.js:40–50  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

38}
39
40async function readSseStream(stream) {
41 const reader = stream.getReader();
42 const dec = new TextDecoder();
43 let out = '';
44 while (true) {
45 const { value, done } = await reader.read();
46 if (done) break;
47 out += dec.decode(value);
48 }
49 return out;
50}
51
52describe('EvoMapProxy._proxyBedrock', () => {
53 let proxy;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected