From 8a57c208be8b791c506d2e1f9c15fbb4a9204d83 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 13 Feb 2020 12:17:15 -0800 Subject: [PATCH] fix --- src/platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.ts b/src/platform.ts index 0624db79c2..7015b89519 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -323,7 +323,7 @@ export class WebSocketTransport implements ConnectionTransport { perMessageDeflate: false, maxPayload: 256 * 1024 * 1024, // 256Mb }) : new WebSocket(url)) as WebSocket; - this._connectPromise = new Promise((fulfill => { + this._connectPromise = new Promise(fulfill => { this._ws.addEventListener('open', () => fulfill(null)); this._ws.addEventListener('error', event => fulfill(new Error('WebSocket error: ' + (event as ErrorEvent).message))); });