Skip to content

Commit

Permalink
add user disconnected event
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi committed Jun 20, 2024
1 parent 0d97373 commit 0baca5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ export declare global {
}

interface ServerToClientEvents {
socket_draw: (newMoves: [number, number][], options: CtxOptions) => void;
user_draw: (newMoves: [number, number][],
options: CtxOptions,
userId: string
) => void;
mouse_moved: (x:number, y:number, socketId: string) => void;
users_in_room: (socketIds: string[]) => void;
user_disconnected: (socketId: string) => void;
}

interface ClientToServerEvents {
Expand Down

0 comments on commit 0baca5a

Please sign in to comment.