*update dist
This commit is contained in:
parent
4d75c11299
commit
603d7c4e14
|
@ -27,8 +27,9 @@ class Socket extends streamx_1.Duplex {
|
||||||
this.remoteFamily = type === 6 ? IPV6 : IPV4;
|
this.remoteFamily = type === 6 ? IPV6 : IPV4;
|
||||||
}
|
}
|
||||||
if (this._emulateWebsocket) {
|
if (this._emulateWebsocket) {
|
||||||
|
this.addEventListener("data", (data) =>
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.addEventListener("data", (data) => this.emit("message", data));
|
this.emit("message", new MessageEvent("data", { data })));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_connecting;
|
_connecting;
|
||||||
|
|
Loading…
Reference in New Issue