1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

handle ping

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

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;

View File

@ -31,7 +31,7 @@ interface WebsocketApiParams {
/**
* The message for pinging the websocket
*
* @default "{type: \"type\"}"
* @default "{type: \"ping\"}"
*/
pingMessage?: string;