Skip to content
Snippets Groups Projects
Commit e3ff7caa authored by arshiam2's avatar arshiam2
Browse files

wip

parent e070a29a
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,8 @@ socket.on("message", function(message, rinfo) {
if (text[0] === "leave") {
const deletedConnection = Object.keys(connections).filter(c => c.toString()[0] === text[1]);
console.log(deletedConnection + "left")
console.log(text[1] + "left")
console.log(deletedConnection)
if (deletedConnection.length > 0) {
delete connections[deletedConnection[0]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment