(stream)
| 38 | } |
| 39 | |
| 40 | async 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 | |
| 52 | describe('EvoMapProxy._proxyBedrock', () => { |
| 53 | let proxy; |