*Update dist
This commit is contained in:
parent
ec937e786b
commit
c2031b4c7f
|
@ -159,8 +159,8 @@ class MultiSocketProxy extends proxy_js_1.default {
|
||||||
const self = this;
|
const self = this;
|
||||||
const message = await peer.channel.addMessage({
|
const message = await peer.channel.addMessage({
|
||||||
encoding: {
|
encoding: {
|
||||||
preencode: compact_encoding_1.json.preencode,
|
preencode: this._server ? socketEncoding.preencode : compact_encoding_1.json.preencode,
|
||||||
encode: compact_encoding_1.json.encode,
|
encode: this._server ? socketEncoding.encode : compact_encoding_1.json.encode,
|
||||||
decode: this._server ? compact_encoding_1.json.decode : socketEncoding.decode,
|
decode: this._server ? compact_encoding_1.json.decode : socketEncoding.decode,
|
||||||
},
|
},
|
||||||
async onmessage(m) {
|
async onmessage(m) {
|
||||||
|
|
Loading…
Reference in New Issue