mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Remove all manual uses of v8 serialization - Seems that sometimes the is a versioning mismatch within the binary format causes cluster screen the go grey Signed-off-by: Sebastian Malton <sebastian@malton.name> * handle ping Signed-off-by: Sebastian Malton <sebastian@malton.name>
32 lines
598 B
TypeScript
32 lines
598 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
|
|
export enum TerminalChannels {
|
|
STDIN = "stdin",
|
|
STDOUT = "stdout",
|
|
CONNECTED = "connected",
|
|
RESIZE = "resize",
|
|
PING = "ping",
|
|
}
|
|
|
|
export type TerminalMessage = {
|
|
type: TerminalChannels.STDIN;
|
|
data: string;
|
|
} | {
|
|
type: TerminalChannels.STDOUT;
|
|
data: string;
|
|
} | {
|
|
type: TerminalChannels.CONNECTED;
|
|
} | {
|
|
type: TerminalChannels.RESIZE;
|
|
data: {
|
|
width: number;
|
|
height: number;
|
|
};
|
|
} | {
|
|
type: TerminalChannels.PING;
|
|
};
|