Browse Source

remove ws

ming 4 năm trước cách đây
mục cha
commit
e1f2b24da6
1 tập tin đã thay đổi với 0 bổ sung7 xóa
  1. 0 7
      api/static/script_msg.js

+ 0 - 7
api/static/script_msg.js

@@ -144,13 +144,6 @@ var myModal = new bootstrap.Modal(document.getElementById('history'), {
       }
       
     }
-            var ws = new WebSocket(`ws://www.choozmo.com:8888/progress/${client_id}`);
-            ws.onmessage = function(event) {
-              console.log(event.data)
-              var elem = document.getElementById("myBar");
-              elem.style.width = event.data + "%";
-              elem.innerHTML = event.data  + "%";
-            };
 
 
             var err = [];