This commit is contained in:
2026-03-10 11:45:06 +00:00
parent 921375c53d
commit f3b42bc206
11 changed files with 243 additions and 49 deletions
+8
View File
@@ -232,6 +232,7 @@ export const WebSocketEvents = [
"client:ping",
"client:service-server-logs",
"client:kill-port",
"client:service-server-shell",
"server:ping",
"server:error",
@@ -241,6 +242,7 @@ export const WebSocketEvents = [
"server:update",
"server:service-server-logs",
"server:killed-port",
"server:service-server-shell",
] as const;
export type WebSocketDataType = {
@@ -250,6 +252,7 @@ export type WebSocketDataType = {
server?: NormalizedServerObject;
ttyd?: TtydInfoObject;
port?: string | number;
log?: string;
};
export type WebSocketMessageParam = {
@@ -291,3 +294,8 @@ export type WebSocketConnectedUserData = {
child_processes: ChildProcess[];
ports: (string | number)[];
};
export const ServerTerminalTargets = [
{ name: "logs" },
{ name: "shell" },
] as const;