mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove all manual uses of v8 serialization (#5548)
* 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>
This commit is contained in:
1 parent
327978dbc8
commit
fae6bff6fb
8 files changed
+58
-50
No files matched your search
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
Reference in new issue
Block a user