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.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Steunou committed Oct 10, 2017
1 parent c1b459b commit cc5702a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions dist/webstomp.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ var Client = function () {
// This method is called for every actual transmission of the STOMP frames over the
// WebSocket.
//
// It is possible to set a `debug(message)` method
// It is possible to set a `debug(message, data)` method
// on a client instance to handle differently the debug messages:
//
// client.debug = function(str) {
Expand Down Expand Up @@ -342,10 +342,10 @@ var Client = function () {
}
});
};
this.ws.onclose = function (ev) {
_this.debug('Whoops! Lost connection to ' + _this.ws.url + ':', ev);
this.ws.onclose = function (event) {
_this.debug('Whoops! Lost connection to ' + _this.ws.url + ':', { event: event });
_this._cleanUp();
if (errorCallback) errorCallback(ev);
if (errorCallback) errorCallback(event);
};
this.ws.onopen = function () {
_this.debug('Web Socket Opened...');
Expand Down Expand Up @@ -558,7 +558,7 @@ var Client = function () {
key: '_transmit',
value: function _transmit(command, headers, body) {
var out = _frame2.default.marshall(command, headers, body);
this.debug('>>> ' + out);
this.debug('>>> ' + out, { frame: { command: command, headers: headers, body: body } });
this._wsSend(out);
}
}, {
Expand Down
Loading

0 comments on commit cc5702a

Please sign in to comment.