We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de57337 commit 1349961Copy full SHA for 1349961
lib/client/websocket-tracker.js
@@ -188,7 +188,7 @@ class WebSocketTracker extends Tracker {
188
agent = new Socks.Agent(clone(this.client._proxyOpts.socksProxy), (parsedUrl.protocol === 'wss:'))
189
}
190
191
- this.socket = socketPool[this.announceUrl] = new Socket(this.announceUrl, { agent: agent })
+ this.socket = socketPool[this.announceUrl] = new Socket({ url: this.announceUrl, agent: agent })
192
this.socket.consumers = 1
193
this.socket.once('connect', this._onSocketConnectBound)
194
0 commit comments