Spaces:
Sleeping
Sleeping
| export enum SocketAction { | |
| JOIN = 'join', | |
| LEAVE = 'leave', | |
| MESSAGE = 'message', | |
| RENAME = 'rename', | |
| } | |
| export interface WebSocketMessage { | |
| room_id: string | |
| username: string | |
| message: string | |
| action: SocketAction | |
| } | |