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

wip

parent 211f46b6
No related branches found
No related tags found
No related merge requests found
......@@ -167,10 +167,8 @@ 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)
console.log(text[1] + " left")
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