Compare commits
2 Commits
cfd5f69cfb
...
c4c1fd8f6b
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | c4c1fd8f6b | |
Derrick Hammer | 623601df27 |
|
@ -153,7 +153,7 @@ class MultiSocketProxy extends proxy_js_1.default {
|
|||
encoding: {
|
||||
preencode: compact_encoding_1.json.preencode,
|
||||
encode: compact_encoding_1.json.encode,
|
||||
decode: this._server ? compact_encoding_1.json.encode : socketEncoding.decode,
|
||||
decode: this._server ? compact_encoding_1.json.decode : socketEncoding.decode,
|
||||
},
|
||||
async onmessage(m) {
|
||||
if (self._allowedPorts.length &&
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue