Spaces:
jiome
/
Sleeping

jiome commited on
Commit
5dd38ce
·
verified ·
1 Parent(s): 1348525

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -0
index.js CHANGED
@@ -75,6 +75,7 @@ const testAll = async (startIP, endIP, res) => {
75
 
76
  let count = 0;
77
  let stop = false;
 
78
  while (true) {
79
  while (count >= 16) {
80
  await new Promise((t) => { setTimeout(t, 100) });
@@ -90,6 +91,7 @@ const testAll = async (startIP, endIP, res) => {
90
  break;
91
  }
92
  }
 
93
  res.end();
94
  }
95
 
 
75
 
76
  let count = 0;
77
  let stop = false;
78
+ res.write("[\n"); // Start of the array
79
  while (true) {
80
  while (count >= 16) {
81
  await new Promise((t) => { setTimeout(t, 100) });
 
91
  break;
92
  }
93
  }
94
+ res.write("];\n"); // End of the array
95
  res.end();
96
  }
97