From 2c4316d2d3a6b799cf050bd57dcaba4609f71c61 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 5 Jan 2023 19:33:15 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartproxy.classes.networkproxy.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 6130ab4..814e7f7 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartproxy', - version: '3.0.50', + version: '3.0.51', description: 'a proxy for handling high workloads of proxying' } diff --git a/ts/smartproxy.classes.networkproxy.ts b/ts/smartproxy.classes.networkproxy.ts index 3972eda..b113834 100644 --- a/ts/smartproxy.classes.networkproxy.ts +++ b/ts/smartproxy.classes.networkproxy.ts @@ -269,9 +269,9 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= }); } const wsc = await wscConnectedDeferred.promise; - wsc.emit('message', message); + wsc.send(message); wsc.on('message', (message) => { - ws.emit('message', message); + ws.send(message); }); // handle closing