We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89cca35 commit 6cab83fCopy full SHA for 6cab83f
1 file changed
src/commands/shell.ts
@@ -101,6 +101,11 @@ export default class Shell extends Command {
101
ws.send(chunk)
102
}
103
})
104
+ } else if (message.type === 'ping') {
105
+ // Respond to server heartbeat
106
+ if (ws.readyState === WS.OPEN) {
107
+ ws.send(JSON.stringify({ type: 'pong' }))
108
+ }
109
110
} catch {
111
// Not JSON, treat as text output
0 commit comments