merge both repos! atempt 1 by making the file system the same!

This commit is contained in:
RezHackXYZ 2025-05-29 13:11:49 +05:30
parent badb303ea6
commit 2fe58ee6be
No known key found for this signature in database
128 changed files with 2320 additions and 4285 deletions

View file

@ -0,0 +1,22 @@
import { supabase } from "$lib/supabase.js";
import { NewStatus } from "./NewStatus.js";
export async function IntializeGameStart(gamepin) {
supabase
.channel(`game_status_${gamepin}`)
.on(
"postgres_changes",
{
event: "UPDATE",
schema: "public",
table: "games",
filter: `gamepin=eq.${gamepin}`,
},
(payload) => {
if (payload.new.status) {
NewStatus(payload.new.status, gamepin);
}
},
)
.subscribe();
}