/[meteor]/googlecode.com/svn/trunk/public_html/stream.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /googlecode.com/svn/trunk/public_html/stream.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20 by andrew.betts, Fri Dec 8 16:52:58 2006 UTC revision 21 by andrew.betts, Mon May 14 13:42:45 2007 UTC
# Line 43  function newXmlHttp() { Line 43  function newXmlHttp() {
43  function startstream() {  function startstream() {
44          streamreq = newXmlHttp();          streamreq = newXmlHttp();
45          byteoffset = 0;          byteoffset = 0;
46          var url = "http://"+location.hostname+"/push?channel="+get("channel")+"&id="+get("MHostId")+"&template=2";          var url = get("subsurl")+"&template=2";
         if (get("lastmsgreceived") >= 0) {  
                 url += "&restartfrom="+(get("lastmsgreceived")+1);  
         } else if (get("backtrack") > 0) {  
                 url += "&backtrack="+get("backtrack");  
         } else if (typeof(get("backtrack")) != "number") {  
                 url += "&restartfrom=";  
         }  
47          var now = new Date();          var now = new Date();
48          var t = now.getTime();          var t = now.getTime();
49          url += "&nocache="+t;          url += "&nocache="+t;

Legend:
Removed from v.20  
changed lines
  Added in v.21

  ViewVC Help
Powered by ViewVC 1.1.26