create observer snapshot model

This commit is contained in:
Thilo Behnke
2022-06-26 21:30:33 +02:00
parent 992827e1c2
commit a0cbc82074
@@ -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;