This commit is contained in:
2023-04-06 20:42:24 +01:00
parent f645c234ce
commit eccf482192
6 changed files with 50 additions and 33 deletions

View File

@ -22,6 +22,7 @@ window.addEventListener("beforeunload", () => {
document.addEventListener("DOMContentLoaded", () => {
socket = io();
random = new Random();
barrier = new Barrier();
@ -33,6 +34,8 @@ document.addEventListener("DOMContentLoaded", () => {
});
socket.on("message", async (packet) => {
window.console.log(`Received size: ${JSON.stringify(packet).length}`);
let data = packet.payload;
if (data.type !== "KEEPALIVE") window.console.log(data);