* Fix decoding method to correctly parse JSON data in multiSocket.ts.

This commit is contained in:
Derrick Hammer 2023-04-16 14:15:21 -04:00
parent cfd5f69cfb
commit 623601df27
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ export default class MultiSocketProxy extends Proxy {
encoding: {
preencode: json.preencode,
encode: json.encode,
decode: this._server ? json.encode : socketEncoding.decode,
decode: this._server ? json.decode : socketEncoding.decode,
},
async onmessage(m: SocketRequest | TcpSocketConnectOpts) {
if (