Commit 948ae913 authored by Balasuriya D.A.M.'s avatar Balasuriya D.A.M.

Socket.io off

parent ebe36b8d
...@@ -73,6 +73,11 @@ io.on("connection", (socket) => { ...@@ -73,6 +73,11 @@ io.on("connection", (socket) => {
}); });
}); });
socket.off("setup", () => {
console.log("USER DISCONNECTED");
socket.leave(userData._id);
});
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment