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