diff --git a/src/index.ts b/src/index.ts index 92a0249..068ff2f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -81,6 +81,10 @@ io.on("connection", async (socket) => { io.to(roomId).emit("update", updatedRoomUsers); }); + socket.on("kick", (userId) => { + io.to(roomId).emit("kick", userId); + }); + socket.on("message", (text) => { io.to(roomId).emit("message", { userId: socket.handshake.auth.user.id,