Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
Publish version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Steunou committed Oct 9, 2017
1 parent b7c7b5e commit 144c1d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/webstomp.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,9 @@ var webstomp = {
// This method creates a WebSocket client that is connected to
// the STOMP server located at the url.
client: function client(url) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { protocols: _utils.VERSIONS.supportedProtocols() };
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

var ws = new WebSocket(url, options.protocols);
var ws = new WebSocket(url, options.protocols || _utils.VERSIONS.supportedProtocols());
return new _client2.default(ws, options);
},
// This method is an alternative to `webstomp.client()` to let the user
Expand Down
Loading

0 comments on commit 144c1d8

Please sign in to comment.