add comment

This commit is contained in:
zizifn
2023-01-19 17:09:49 +00:00
committed by zizifn
parent 029a4f32aa
commit 92a0b42fff
2 changed files with 18 additions and 4 deletions

View File

@@ -176,6 +176,8 @@ export function makeReadableWebSocketStream(
// console.log('MESSAGE', vlessBuffer);
// console.log(`message is ${vlessBuffer.byteLength}`);
// this is not backpressure, but backpressure is depends on underying websocket can pasue
// https://streams.spec.whatwg.org/#example-rs-push-backpressure
controller.enqueue(vlessBuffer);
});
ws.addEventListener('error', (e: any) => {