Skip to content

Commit 3b2d273

Browse files
committed
link terminal instances after reconnection
1 parent a623618 commit 3b2d273

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/backendAPI/workspaceAPI.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export function connectWebsocketClient () {
2727
connectedResolve(this)
2828
resolve(true)
2929
}, function (err) {
30-
console.log('fsSocketDisconnected', err)
3130
})
3231
})
3332
}

app/components/Terminal/terminal-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ class TerminalClient extends TtySocketClient {
7171
// return results;
7272
// });
7373

74-
this.socket.on('reconnect', (data) => {
74+
this.socket.on('connect', (data) => {
7575
let i, j, len
7676
for (i = j = 0, len = terms.length; j < len; i = ++j) {
7777
this.openTerm(terms[i])
7878
}
7979
})
8080

8181
this.socket.on('disconnect', (data) => {
82-
console.log('fs disconnect...');
82+
console.log('terminal disconnect...');
8383
this.reconnect()
8484
});
8585

0 commit comments

Comments
 (0)