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':