fix(core): update
This commit is contained in:
parent
e51c2a88cc
commit
f6e656361b
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartproxy',
|
name: '@pushrocks/smartproxy',
|
||||||
version: '3.0.55',
|
version: '3.0.56',
|
||||||
description: 'a proxy for handling high workloads of proxying'
|
description: 'a proxy for handling high workloads of proxying'
|
||||||
}
|
}
|
||||||
|
@ -260,12 +260,12 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
|
|||||||
}
|
}
|
||||||
|
|
||||||
wsIncoming.on("message", (message, isBinary) => {
|
wsIncoming.on("message", (message, isBinary) => {
|
||||||
console.log("client to upstream", message);
|
// console.log("client to upstream", message);
|
||||||
wsOutgoing.send(message, { binary: isBinary });
|
wsOutgoing.send(message, { binary: isBinary });
|
||||||
});
|
});
|
||||||
|
|
||||||
wsOutgoing.on("message", (message, isBinary) => {
|
wsOutgoing.on("message", (message, isBinary) => {
|
||||||
console.log("upstream to client", message);
|
// console.log("upstream to client", message);
|
||||||
wsIncoming.send(message, { binary: isBinary });
|
wsIncoming.send(message, { binary: isBinary });
|
||||||
});
|
});
|
||||||
wsIncoming.on("error", () => wsOutgoing.terminate());
|
wsIncoming.on("error", () => wsOutgoing.terminate());
|
||||||
|
Loading…
Reference in New Issue
Block a user