Dev 1.01 #57

Merged
LukeGus merged 7 commits from dev-1.01 into main 2025-08-01 03:38:27 +00:00
Showing only changes of commit 4b53139c20 - Show all commits

View File

@@ -130,6 +130,12 @@ wss.on('connection', (ws: WebSocket) => {
sshStream = stream;
const keepaliveTimer = setInterval(() => {
if (sshStream && sshStream.writable) {
sshStream.write('\x00');
}
}, 30000);
stream.on('data', (chunk: Buffer) => {
ws.send(JSON.stringify({ type: 'data', data: chunk.toString() }));
});
@@ -177,8 +183,8 @@ wss.on('connection', (ws: WebSocket) => {
host: ip,
port,
username,
keepaliveInterval: 5000,
keepaliveCountMax: 10,
keepaliveInterval: 10000,
keepaliveCountMax: 60,
readyTimeout: 10000,
algorithms: {
@@ -261,4 +267,4 @@ wss.on('connection', (ws: WebSocket) => {
sshConn = null;
}
}
});
});