xhr refactoring: renaming xhr_rd to xhr, remove all xhr_rd_ prefixies from http_strea...
[brisk.git] / web / index.php
index 916f11e..170bb75 100644 (file)
@@ -1066,7 +1066,7 @@ else {
 
 ?>
      sess = "<?php echo "$sess"; ?>";
-     hstm = new http_streaming();
+     hstm = new http_streaming("sess");
      hstm.hbit_set(hbit);
      // xhr_rd.setRequestHeader("Content-type", "text/html; charset=utf-8");
      tra = new train($('room_tit'));
@@ -1080,7 +1080,7 @@ else {
        $("proflashext").innerHTML = "";
 
      // console.log("session from main: "+sess);
-     hstm.xhr_rd_poll(sess); 
+     hstm.start(sess); 
      // alert("ARR LENGTH "+g_preload_img_arr.length);
      setTimeout(preload_images, 0, g_preload_img_arr, g_imgct); 
      $("txt_in").focus();