mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-08-19 05:06:14 +00:00
create observer snapshot model
This commit is contained in:
@@ -67,4 +67,10 @@ export type PeerSessionSnapshot = {
|
||||
ts: number
|
||||
}
|
||||
|
||||
export type SessionSnapshot = HostSessionSnapshot | PeerSessionSnapshot;
|
||||
export type ObserverSessionSnapshot = {
|
||||
session_id: string,
|
||||
player: string,
|
||||
ts: number
|
||||
}
|
||||
|
||||
export type SessionSnapshot = HostSessionSnapshot | PeerSessionSnapshot | ObserverSessionSnapshot;
|
||||
|
||||
Reference in New Issue
Block a user