Skip to content

Commit 1349961

Browse files
committed
Fix new Socket constructor
1 parent de57337 commit 1349961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/websocket-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class WebSocketTracker extends Tracker {
188188
agent = new Socks.Agent(clone(this.client._proxyOpts.socksProxy), (parsedUrl.protocol === 'wss:'))
189189
}
190190
}
191-
this.socket = socketPool[this.announceUrl] = new Socket(this.announceUrl, { agent: agent })
191+
this.socket = socketPool[this.announceUrl] = new Socket({ url: this.announceUrl, agent: agent })
192192
this.socket.consumers = 1
193193
this.socket.once('connect', this._onSocketConnectBound)
194194
}

0 commit comments

Comments
 (0)