diff --git a/common/types/global.d.ts b/common/types/global.d.ts index 917bce0..dd652da 100644 --- a/common/types/global.d.ts +++ b/common/types/global.d.ts @@ -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 {