Skip to content

Commit

Permalink
udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
ideawu committed Sep 30, 2013
1 parent e2a40e2 commit d6b756b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/js/icomet.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function iComet(config){
self.stopped = true;
self.last_sub_time = 0;
self.need_fast_reconnect = true;
self.token = '';

self.data_seq = 0;
self.noop_seq = 0;
Expand Down Expand Up @@ -177,6 +178,7 @@ function iComet(config){
+ '&cid=' + self.cid
+ '&seq=' + self.data_seq
+ '&noop=' + self.noop_seq
+ '&token=' + self.token
+ '&_=' + new Date().getTime();
$.ajax({
url: url,
Expand All @@ -203,6 +205,7 @@ function iComet(config){
}
if(!self.stopped){
self.cid = msg.cid;
self.token = msg.token;
try{
var a = parseInt(msg.sub_timeout) || 0;
self.sub_timeout = (a + 10) * 1000;
Expand Down

0 comments on commit d6b756b

Please sign in to comment.