mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 17:12:08 +00:00
Implement instant websocket room updates
This commit is contained in:
@@ -132,6 +132,10 @@ export type RoomVoteDeckProps = {
|
||||
presenterMode: boolean;
|
||||
};
|
||||
|
||||
export type RoomVoteDeckEmits = {
|
||||
'vote-changed': [value: string | null];
|
||||
};
|
||||
|
||||
export type RoomStateChange =
|
||||
| 'player_joined'
|
||||
| 'vote_changed'
|
||||
@@ -145,4 +149,14 @@ export type RoomStateChange =
|
||||
export type RoomStateChangedPayload = {
|
||||
version: number;
|
||||
change: RoomStateChange;
|
||||
state: RoomRealtimeState | null;
|
||||
};
|
||||
|
||||
export type RoomRealtimeState = Pick<
|
||||
PokerRoom,
|
||||
| 'current_round'
|
||||
| 'revealed'
|
||||
| 'state_version'
|
||||
| 'statistics'
|
||||
| 'players'
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user