From 2e841c082e8ed269ae8d0c2faa5aecc5bd03f286 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 25 Apr 2020 18:43:22 +0200 Subject: [PATCH] Implement leave command. --- static/sfu.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/sfu.js b/static/sfu.js index 01b99ff..a673d3e 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -679,6 +679,9 @@ function handleInput() { message = rest; me = true; break; + case '/leave': + socket.close(); + return; case '/op': case '/unop': case '/kick':