aboutsummaryrefslogtreecommitdiffstats
path: root/backend/src/model/session.ts
blob: d2fdea3c264d71e11472bd2f17a4f33513200f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { CoopWebSocket } from "./websocket";

export type CoopSession = {
  id: string;
  state: SessionState;
  host: CoopWebSocket;
  clients: CoopWebSocket[];
};

export type VersusSession = {
  id: string;
  state: SessionState;
  clients: string[];
};

export type SessionState = 'waiting' | 'playing' | 'finished';