fix(core): update

This commit is contained in:
Philipp Kunz 2019-08-23 00:48:14 +02:00
parent 7c4d9cf301
commit f7259a6309
3 changed files with 2 additions and 6 deletions

View File

@ -41,4 +41,4 @@
"npmextra.json",
"readme.md"
]
}
}

View File

@ -3,10 +3,6 @@ import * as smartproxy from '../ts/index';
let testProxy: smartproxy.SmartProxy;
if (process.env.CI) {
process.exit(0);
}
tap.test('first test', async () => {
testProxy = new smartproxy.SmartProxy();
});

View File

@ -44,7 +44,7 @@ export class ProxyWorker {
const wss = new plugins.ws.Server({ server: this.httpsServer });
wss.on('connection', function connection(ws) {
const wscConnected = plugins.smartpromise.defer();
const wsc = new Websocket.default(`${ws.url}`);
wsc.on('open', () => {
wscConnected.resolve();