Update 'src/lib.ts'

This commit is contained in:
Sambo Chea 2022-12-19 10:56:51 +07:00
parent 5b1a7a68c5
commit 97c94ad816

View File

@ -57,7 +57,7 @@ class TunnelResponse extends stream.Duplex {
super();
if (duplex) {
// for websocket request bidirection
// for websocket request: bidirection
const onResponsePipe = (responseId: string, data: any) => {
if (this.responseId === responseId) {
this.push(data);