Skip to content

Commit

Permalink
Add client heart beat
Browse files Browse the repository at this point in the history
  • Loading branch information
bnadim committed Jun 10, 2014
1 parent f530376 commit ebe5ecf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions hubiquitus.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ window.hubiquitus._Transport = (function () {
logger.trace('received message', e.data);
if (e.data === 'hb') {
this._lastHeartbeat = Date.now();
this._sock.send('hb');
} else {
var msg = decode(e.data);

Expand Down
Loading

0 comments on commit ebe5ecf

Please sign in to comment.