Keep shell processes alive between network offline periods (#4258)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-11-09 12:30:55 -05:00
1 parent 8de3cbe5ee
commit e5bf5920fc
6 files changed
+141 -29

No files matched your search

@@ -87,8 +87,8 @@ export function shellApiRequest({ req, socket, head }: ProxyApiRequestArgs): voi
ws.handleUpgrade(req, socket, head, (webSocket) => {
const shell = node
? new NodeShellSession(webSocket, cluster, node)
: new LocalShellSession(webSocket, cluster);
? new NodeShellSession(webSocket, cluster, node, tabId)
: new LocalShellSession(webSocket, cluster, tabId);
shell.open()
.catch(error => logger.error(`[SHELL-SESSION]: failed to open a ${node ? "node" : "local"} shell`, error));