Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 9d90bb2

Browse files
committed
fix typos
1 parent 30c1c16 commit 9d90bb2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.html

+7-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ <h1 id="status">Input-Server Loading</h1>
111111
}).catch(ex => {
112112
alert("Fetch Error " + ex);
113113
});
114-
114+
115+
let peerConnects = 0;
115116
peer.on("connection", (conn) => {
116117
conn.send({
117118
event: "hello"
@@ -130,9 +131,13 @@ <h1 id="status">Input-Server Loading</h1>
130131
});
131132
}else if(data.event == "fwd"){
132133
// FORWARD!
134+
console.log("Forward",data.args);
133135
socket.emit(...data.args);
134136
}
135137
});
138+
139+
peerConnects ++;
140+
advStatus(peerConnects + " connects total");
136141
})
137142

138143
}else if(role == "relay_sender"){
@@ -159,7 +164,7 @@ <h1 id="status">Input-Server Loading</h1>
159164
});
160165

161166
conn.on("data", (data) => {
162-
if(data.event == "instances"){
167+
if(data.event == "instanceList"){
163168
onInstanceList(data.data);
164169
}else if(data.event == "ping"){
165170
advStatus("Direct Ping: " + (Date.now() - data.time) + "ms");

0 commit comments

Comments
 (0)