mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Keep shell processes alive between network offline periods (#4258)
This commit is contained in:
1 parent
8de3cbe5ee
commit
e5bf5920fc
6 files changed
+141
-29
No files matched your search
@@ -73,7 +73,13 @@ export class TerminalApi extends WebSocketApi {
|
||||
}
|
||||
|
||||
async connect() {
|
||||
this.emitStatus("Connecting ...");
|
||||
if (!this.socket) {
|
||||
/**
|
||||
* Only emit this message if we are not "reconnecting", so as to keep the
|
||||
* output display clean when the computer wakes from sleep
|
||||
*/
|
||||
this.emitStatus("Connecting ...");
|
||||
}
|
||||
|
||||
const shellToken = await ipcRenderer.invoke("cluster:shell-api", getHostedClusterId(), this.query.id);
|
||||
const { hostname, protocol, port } = location;
|
||||
|
||||
Reference in new issue
Block a user