Add client leaving host notification
This commit is contained in:
parent
7eeda3e6ae
commit
3c54a0f4d9
3 changed files with 164 additions and 0 deletions
1
types.ts
1
types.ts
|
|
@ -229,4 +229,5 @@ export type NetworkMessage =
|
|||
| { type: 'ADVANCE'; payload: { action: 'START' | 'NEXT' | 'SCOREBOARD' } }
|
||||
| { type: 'KICK'; payload: { playerId: string } }
|
||||
| { type: 'KICKED'; payload: { reason?: string } }
|
||||
| { type: 'LEAVE'; payload: {} }
|
||||
| { type: 'PLAYER_LEFT'; payload: { playerId: string } };
|
||||
Loading…
Add table
Add a link
Reference in a new issue