@@ -56,6 +56,7 @@ func sshWSHandler(w http.ResponseWriter, r *http.Request) {
}
if err != nil {
+ ws.Close()
return
@@ -53,6 +53,9 @@ function connectSSH() {
sshWS.onclose = () => {
sshWS = null;
+ sshTerm.write(
+ "\r\n\x1b[33m[Connection closed]\x1b[0m\r\n"
+ );
};