* Fix decoding method to correctly parse JSON data in multiSocket.ts.
This commit is contained in:
parent
cfd5f69cfb
commit
623601df27
|
@ -193,7 +193,7 @@ export default class MultiSocketProxy extends Proxy {
|
||||||
encoding: {
|
encoding: {
|
||||||
preencode: json.preencode,
|
preencode: json.preencode,
|
||||||
encode: json.encode,
|
encode: json.encode,
|
||||||
decode: this._server ? json.encode : socketEncoding.decode,
|
decode: this._server ? json.decode : socketEncoding.decode,
|
||||||
},
|
},
|
||||||
async onmessage(m: SocketRequest | TcpSocketConnectOpts) {
|
async onmessage(m: SocketRequest | TcpSocketConnectOpts) {
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in New Issue