From c2031b4c7f8664ab3f679331e6bbc2fa9d91d860 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 16 Apr 2023 17:34:59 -0400 Subject: [PATCH] *Update dist --- dist/proxies/multiSocket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/proxies/multiSocket.js b/dist/proxies/multiSocket.js index 6e59b25..d18a6eb 100644 --- a/dist/proxies/multiSocket.js +++ b/dist/proxies/multiSocket.js @@ -159,8 +159,8 @@ class MultiSocketProxy extends proxy_js_1.default { const self = this; const message = await peer.channel.addMessage({ encoding: { - preencode: compact_encoding_1.json.preencode, - encode: compact_encoding_1.json.encode, + preencode: this._server ? socketEncoding.preencode : compact_encoding_1.json.preencode, + encode: this._server ? socketEncoding.encode : compact_encoding_1.json.encode, decode: this._server ? compact_encoding_1.json.decode : socketEncoding.decode, }, async onmessage(m) {