Skip to content

Commit

Permalink
Bump js build and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Aug 6, 2015
1 parent fd30721 commit 38c0d32
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.16.1 (2015-8-6)

* JavaScript client bug fixes
* Pass socket params on reconnect

## v0.16.0 (2015-8-5)

See these [`0.15.x` to `0.16.0` upgrade instructions](https://gist.github.com/chrismccord/969d75d1562979a3ae37) to bring your existing apps up to speed.
Expand Down
6 changes: 3 additions & 3 deletions priv/static/phoenix.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,12 @@ var Socket = exports.Socket = (function () {
this.reconnectAfterMs = opts.reconnectAfterMs || function (tries) {
return [1000, 5000, 10000][tries - 1] || 10000;
};
this.reconnectTimer = new Timer(function () {
return _this.connect();
}, this.reconnectAfterMs);
this.logger = opts.logger || function () {}; // noop
this.longpollerTimeout = opts.longpollerTimeout || 20000;
this.params = {};
this.reconnectTimer = new Timer(function () {
return _this.connect(_this.params);
}, this.reconnectAfterMs);
this.endPoint = "" + endPoint + "/" + TRANSPORTS.websocket;
}

Expand Down
2 changes: 1 addition & 1 deletion web/static/js/phoenix.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ export class Socket {
this.reconnectAfterMs = opts.reconnectAfterMs || function(tries){
return [1000, 5000, 10000][tries - 1] || 10000
}
this.reconnectTimer = new Timer(() => this.connect(this.params), this.reconnectAfterMs)
this.logger = opts.logger || function(){} // noop
this.longpollerTimeout = opts.longpollerTimeout || 20000
this.params = {}
this.reconnectTimer = new Timer(() => this.connect(this.params), this.reconnectAfterMs)
this.endPoint = `${endPoint}/${TRANSPORTS.websocket}`
}

Expand Down

0 comments on commit 38c0d32

Please sign in to comment.