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

wip

parent e3ff7caa
No related branches found
No related tags found
No related merge requests found
......@@ -167,6 +167,7 @@ socket.on("message", function(message, rinfo) {
}
if (text[0] === "leave") {
console.log(Object.keys(connections).filter(c => c.toString())
const deletedConnection = Object.keys(connections).filter(c => c.toString()[0] === text[1]);
console.log(text[1] + "left")
console.log(deletedConnection)
......
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