upd
This commit is contained in:
@@ -81,6 +81,10 @@ io.on("connection", async (socket) => {
|
|||||||
io.to(roomId).emit("update", updatedRoomUsers);
|
io.to(roomId).emit("update", updatedRoomUsers);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
socket.on("kick", (userId) => {
|
||||||
|
io.to(roomId).emit("kick", userId);
|
||||||
|
});
|
||||||
|
|
||||||
socket.on("message", (text) => {
|
socket.on("message", (text) => {
|
||||||
io.to(roomId).emit("message", {
|
io.to(roomId).emit("message", {
|
||||||
userId: socket.handshake.auth.user.id,
|
userId: socket.handshake.auth.user.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user