From 623601df27efaf526e114d9868eea2742d5815b7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 16 Apr 2023 14:15:21 -0400 Subject: [PATCH] * Fix decoding method to correctly parse JSON data in multiSocket.ts. --- src/proxies/multiSocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxies/multiSocket.ts b/src/proxies/multiSocket.ts index f4a44fe..2e03dd4 100644 --- a/src/proxies/multiSocket.ts +++ b/src/proxies/multiSocket.ts @@ -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 (