Skip to content

Commit 6276a50

Browse files
committed
Add config/last_game message to protocol
1 parent 2545a44 commit 6276a50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/engine/protocol/ServerToClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ export interface ServerToClient {
115115
* that are found in the ui/config */
116116
"user/update": (user: User & { [extra: string]: any }) => void;
117117

118+
/** Update the user's last completed game state */
119+
"config/last_game": (last_game: { [key: string]: any } | null) => void;
120+
118121
/** Updates whether a user is online or not. Subscribe to these updates for
119122
* particular users using the `user/monitor` command. */
120123
"user/state": (data: { [player_id: number]: boolean }) => void;

0 commit comments

Comments
 (0)