*update dist

This commit is contained in:
Derrick Hammer 2023-02-25 22:12:36 -05:00
parent 4d75c11299
commit 603d7c4e14
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

3
dist/socket.js vendored
View File

@ -27,8 +27,9 @@ class Socket extends streamx_1.Duplex {
this.remoteFamily = type === 6 ? IPV6 : IPV4;
}
if (this._emulateWebsocket) {
this.addEventListener("data", (data) =>
// @ts-ignore
this.addEventListener("data", (data) => this.emit("message", data));
this.emit("message", new MessageEvent("data", { data })));
}
}
_connecting;