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:
parent
b91d1a6f6a
commit
82b3c0e941
@ -251,6 +251,9 @@ export abstract class ShellSession {
|
|||||||
case TerminalChannels.RESIZE:
|
case TerminalChannels.RESIZE:
|
||||||
shellProcess.resize(message.data.width, message.data.height);
|
shellProcess.resize(message.data.width, message.data.height);
|
||||||
break;
|
break;
|
||||||
|
case TerminalChannels.PING:
|
||||||
|
logger.silly(`[SHELL-SESSION]: ${this.terminalId} ping!`);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
logger.warn(`[SHELL-SESSION]: unknown or unhandleable message type for ${this.terminalId}`, message);
|
logger.warn(`[SHELL-SESSION]: unknown or unhandleable message type for ${this.terminalId}`, message);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -31,7 +31,7 @@ interface WebsocketApiParams {
|
|||||||
/**
|
/**
|
||||||
* The message for pinging the websocket
|
* The message for pinging the websocket
|
||||||
*
|
*
|
||||||
* @default "{type: \"type\"}"
|
* @default "{type: \"ping\"}"
|
||||||
*/
|
*/
|
||||||
pingMessage?: string;
|
pingMessage?: string;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user