Browse Source

Close terminal on websocket disconnect

pull/3/head
Krishna Srinivas 11 years ago
parent
commit
3e1a604a10
  1. 6
      app.js

6
app.js

@ -83,4 +83,10 @@ wss.on('request', function(request) {
term.write(data.data); term.write(data.data);
} }
}); });
conn.on('error', function() {
term.end();
});
conn.on('close', function() {
term.end();
})
}) })

Loading…
Cancel
Save