Skip to content

Commit 242859c

Browse files
committed
fix: refactored and cleaned up
- cleaning up `QUICStream.ts` writable stream logic - cleaning up `QUICStream.ts` readable stream logic - fixing up `QUICStream` tests [ci skip]
1 parent 30daec8 commit 242859c

File tree

3 files changed

+763
-826
lines changed

3 files changed

+763
-826
lines changed

src/QUICClient.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,13 @@ class QUICClient extends EventTarget {
335335
}),
336336
);
337337
}
338+
}
339+
if (e instanceof events.QUICConnectionStreamEvent) {
340+
this.dispatchEvent(
341+
new events.QUICConnectionStreamEvent({ detail: e.detail }),
342+
);
338343
} else {
339-
this.dispatchEvent(e);
344+
throw Error('TMP MUST RETHROW EVENTS');
340345
}
341346
};
342347

0 commit comments

Comments
 (0)