From a0cbc82074fda52881c1327dfbd5e54af37f9cee Mon Sep 17 00:00:00 2001 From: Thilo Behnke Date: Sun, 26 Jun 2022 21:30:33 +0200 Subject: [PATCH] create observer snapshot model --- client/svelte-client/src/store/model/session.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/svelte-client/src/store/model/session.ts b/client/svelte-client/src/store/model/session.ts index 18a0263..856c46a 100644 --- a/client/svelte-client/src/store/model/session.ts +++ b/client/svelte-client/src/store/model/session.ts @@ -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;