xyplon
commited on
Update static/models.js
Browse files- static/models.js +0 -18
static/models.js
CHANGED
@@ -2,24 +2,6 @@
|
|
2 |
|
3 |
|
4 |
|
5 |
-
window.addEventListener('load', function() {
|
6 |
-
const socket = io('https://xyplon.onrender.com', {
|
7 |
-
reconnectionAttempts: 3,
|
8 |
-
timeout: 10000
|
9 |
-
});
|
10 |
-
|
11 |
-
socket.on('connect', function() {
|
12 |
-
console.log('Connected to Socket.IO server');
|
13 |
-
});
|
14 |
-
|
15 |
-
socket.on('connect_error', function(error) {
|
16 |
-
console.error('Connection error:', error);
|
17 |
-
});
|
18 |
-
|
19 |
-
socket.on('update', function(data) {
|
20 |
-
document.getElementById('stats').textContent = `Pending (Generating): ${data["Pending Requests"]} Total Requests: ${data["Total Requests"]}`;
|
21 |
-
});
|
22 |
-
});
|
23 |
|
24 |
|
25 |
const div = document.getElementById('imshow');
|
|
|
2 |
|
3 |
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
|
7 |
const div = document.getElementById('imshow');
|