[wip] added socket shape for join game + started working on front handling of game param in url

This commit is contained in:
bgoulard 2026-01-11 17:03:12 +01:00 committed by Nigel
parent a435afb48f
commit b862dc27f1
4 changed files with 60 additions and 9 deletions

View file

@ -37,6 +37,12 @@ export type TourInfo = {
remainingMatches: number | null,
};
export enum JoinRes {
yes = 'yes',
no = 'dont ever talk to me or my kid ever again',
dev = 'yaaaaaaaaaaaaaaaaaaaaaaaa',
};
export interface ClientToServer {
enqueue: () => void;
dequeue: () => void;
@ -46,6 +52,8 @@ export interface ClientToServer {
connectedToGame: (gameId: string) => void;
localGame: () => void;
joinGame: (guid : string, ack:(result:JoinRes) => void) => void;
hello: () => void;
// TOURNAMENT