From 6c84406574a1a3547ef8320dbff63a6afe44a8aa Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 24 Sep 2019 16:27:34 +0200 Subject: [PATCH] fix(core): update --- ts/smartproxy.classes.proxyworker.ts | 2 +- ts/smartproxy.plugins.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/smartproxy.classes.proxyworker.ts b/ts/smartproxy.classes.proxyworker.ts index 2bdb86f..b87416b 100644 --- a/ts/smartproxy.classes.proxyworker.ts +++ b/ts/smartproxy.classes.proxyworker.ts @@ -132,7 +132,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= console.log('got connection for wsc'); const wscConnected = plugins.smartpromise.defer(); - const wsc = new plugins.ws(this.router.routeReq(ws), { + const wsc = new plugins.ws(this.router.routeWs(ws), { headers: { Host: ws.url } diff --git a/ts/smartproxy.plugins.ts b/ts/smartproxy.plugins.ts index cabf19b..c2936c1 100644 --- a/ts/smartproxy.plugins.ts +++ b/ts/smartproxy.plugins.ts @@ -19,6 +19,6 @@ import * as smartsystem from '@pushrocks/smartsystem'; export { smartrequest, smartpromise, smartspawn, smartsystem }; // third party scope -import * as ws from 'ws'; +import ws from 'ws'; export { ws };