fix(core): update
This commit is contained in:
		| @@ -41,4 +41,4 @@ | |||||||
|     "npmextra.json", |     "npmextra.json", | ||||||
|     "readme.md" |     "readme.md" | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
| @@ -3,10 +3,6 @@ import * as smartproxy from '../ts/index'; | |||||||
|  |  | ||||||
| let testProxy: smartproxy.SmartProxy; | let testProxy: smartproxy.SmartProxy; | ||||||
|  |  | ||||||
| if (process.env.CI) { |  | ||||||
|   process.exit(0); |  | ||||||
| } |  | ||||||
|  |  | ||||||
| tap.test('first test', async () => { | tap.test('first test', async () => { | ||||||
|   testProxy = new smartproxy.SmartProxy(); |   testProxy = new smartproxy.SmartProxy(); | ||||||
| }); | }); | ||||||
|   | |||||||
| @@ -44,7 +44,7 @@ export class ProxyWorker { | |||||||
|     const wss = new plugins.ws.Server({ server: this.httpsServer }); |     const wss = new plugins.ws.Server({ server: this.httpsServer }); | ||||||
|     wss.on('connection', function connection(ws) { |     wss.on('connection', function connection(ws) { | ||||||
|       const wscConnected = plugins.smartpromise.defer(); |       const wscConnected = plugins.smartpromise.defer(); | ||||||
|        |  | ||||||
|       const wsc = new Websocket.default(`${ws.url}`); |       const wsc = new Websocket.default(`${ws.url}`); | ||||||
|       wsc.on('open', () => { |       wsc.on('open', () => { | ||||||
|         wscConnected.resolve(); |         wscConnected.resolve(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user