Compare commits
No commits in common. "c2031b4c7f8664ab3f679331e6bbc2fa9d91d860" and "f3e5cebe45981c344f2bf1fbf95448f90d9c8a52" have entirely different histories.
c2031b4c7f
...
f3e5cebe45
|
@ -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: this._server ? socketEncoding.preencode : compact_encoding_1.json.preencode,
|
preencode: compact_encoding_1.json.preencode,
|
||||||
encode: this._server ? socketEncoding.encode : compact_encoding_1.json.encode,
|
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) {
|
||||||
|
|
|
@ -199,8 +199,8 @@ export default class MultiSocketProxy extends Proxy {
|
||||||
const self = this;
|
const self = this;
|
||||||
const message = await peer.channel.addMessage({
|
const message = await peer.channel.addMessage({
|
||||||
encoding: {
|
encoding: {
|
||||||
preencode: this._server ? socketEncoding.preencode : json.preencode,
|
preencode: json.preencode,
|
||||||
encode: this._server ? socketEncoding.encode : json.encode,
|
encode: json.encode,
|
||||||
decode: this._server ? json.decode : socketEncoding.decode,
|
decode: this._server ? json.decode : socketEncoding.decode,
|
||||||
},
|
},
|
||||||
async onmessage(m: SocketRequest | TcpSocketConnectOpts) {
|
async onmessage(m: SocketRequest | TcpSocketConnectOpts) {
|
||||||
|
|
Loading…
Reference in New Issue