[wip] added socket shape for join game + started working on front handling of game param in url
This commit is contained in:
parent
a435afb48f
commit
b862dc27f1
4 changed files with 60 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue