no moulinette ?

This commit is contained in:
Guillem George 2026-05-16 11:14:39 +02:00
parent a0b5e97058
commit 2b7b6b8684
5 changed files with 50 additions and 16 deletions

View file

@ -1,6 +1,7 @@
import { initSocket } from "../utils/streams";
import { initSocket, subscribe } from "../utils/streams";
import { calculateLayout } from "./utils";
import { authenticate } from "../utils/auth";
import { fetchRoomConfig } from "../rooms";
// Initialize the layout
calculateLayout();
@ -11,6 +12,13 @@ async () => {
return;
}
let room = window.location.pathname.split("/")[1];
if (room === "") {
room = "epi-place";
}
initSocket();
// subscribe()
subscribe(room, "pixel-update");
fetchRoomConfig(room);
};