handle ping

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-06-02 11:16:57 -04:00
1 parent b91d1a6f6a
commit 82b3c0e941
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -251,6 +251,9 @@ export abstract class ShellSession {
case TerminalChannels.RESIZE:
shellProcess.resize(message.data.width, message.data.height);
break;
case TerminalChannels.PING:
logger.silly(`[SHELL-SESSION]: ${this.terminalId} ping!`);
break;
default:
logger.warn(`[SHELL-SESSION]: unknown or unhandleable message type for ${this.terminalId}`, message);
break;
+1 -1
View File
@@ -31,7 +31,7 @@ interface WebsocketApiParams {
/**
* The message for pinging the websocket
*
* @default "{type: \"type\"}"
* @default "{type: \"ping\"}"
*/
pingMessage?: string;