Compare commits
1 Commits
v1.1.1
...
baa43f2b99
| Author | SHA1 | Date | |
|---|---|---|---|
| baa43f2b99 |
@@ -55,16 +55,18 @@ const confirmPasswordInput = document.getElementById('confirm-password');
|
||||
|
||||
function onWsOpen() {
|
||||
updateWebsocketStatus(true);
|
||||
if (term) {
|
||||
term.write('\x1b[32mConnected to WebSocket Server\x1b[0m\r\n');
|
||||
}
|
||||
// if (term) {
|
||||
// term.write('\x1b[32mConnected to WebSocket Server\x1b[0m\r\n');
|
||||
// }
|
||||
console.log('Connected to WebSocket Server');
|
||||
}
|
||||
|
||||
function onWsClose() {
|
||||
updateWebsocketStatus(false);
|
||||
if (term) {
|
||||
term.write('\r\n\x1b[31mConnection closed. Reconnecting...\x1b[0m\r\n');
|
||||
}
|
||||
// if (term) {
|
||||
// term.write('\r\n\x1b[31mConnection closed. Reconnecting...\x1b[0m\r\n');
|
||||
// }
|
||||
console.log('Connection closed. Reconnecting...');
|
||||
setTimeout(connect, 2000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user