From 04a3ea8bf48e1857773a4916c0ca44f6e56e40eb Mon Sep 17 00:00:00 2001 From: Paul Forti Date: Wed, 15 Nov 2017 12:59:46 -0600 Subject: [PATCH] Pass the configuration to new WebSocket to allow usage of custom http agents (proxy) --- lib/Transport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transport.js b/lib/Transport.js index 0cbaeaf..2ab71f2 100644 --- a/lib/Transport.js +++ b/lib/Transport.js @@ -28,7 +28,7 @@ class Transport extends Events { } _connect() { - this.ws = new WebSocket(connectionDetails.wsPath(this.configuration)); + this.ws = new WebSocket(connectionDetails.wsPath(this.configuration), this.configuration); this.ws.on('open', () => { this.emit('open');