Skip to content

Commit

Permalink
pass protocols to ws again (crossbario#344)
Browse files Browse the repository at this point in the history
The constructor for ws looks like this: constructor (address, protocols, options)
So we have to call it appropriately like this: WebSocket(self._options.url, protocols, options)
  • Loading branch information
JulZimmermann authored and oberstet committed Mar 20, 2018
1 parent 0430d19 commit 79b444c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transport/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Factory.prototype.create = function () {
options.protocol = protocols;
}

websocket = new WebSocket(self._options.url, options);
websocket = new WebSocket(self._options.url, protocols, options);

transport.send = function (msg) {
var payload = transport.serializer.serialize(msg);
Expand Down

0 comments on commit 79b444c

Please sign in to comment.