Skip to content

Commit

Permalink
Removed magic numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiratara committed Jan 4, 2011
1 parent 379a8c2 commit 8aa0c35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/main.js
Expand Up @@ -18,6 +18,7 @@
this.onopen = function () {};
this.logs = [];
this.logSize = 20;
this.pingInterval = 60; /* sec */
};
Room.prototype = {
setNickname : function (nickname) {
Expand Down Expand Up @@ -79,7 +80,7 @@
socket.onopen = function () {
setInterval(function () {
$.post(self.room_id + "/ping");
}, 1000 * 60);
}, 1000 * self.pingInterval);

$.post(self.room_id + "/request_recent_logs");

Expand Down

0 comments on commit 8aa0c35

Please sign in to comment.