mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-02 12:42:12 +00:00
rewrited with method anyLoadOnload
This commit is contained in:
parent
4e41cdea20
commit
5302f7962c
2 changed files with 30 additions and 36 deletions
|
|
@ -22,9 +22,11 @@ var CloudCommander, io;
|
|||
socket.on('connect', function () {
|
||||
JqueryTerminal = getJqueryTerminal();
|
||||
|
||||
outToTerminal({stdout: 'socket connected'});
|
||||
if(JqueryTerminal){
|
||||
outToTerminal({stdout: 'socket connected'});
|
||||
|
||||
JqueryTerminal.Term.resume();
|
||||
JqueryTerminal.Term.resume();
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('message', function (msg) {
|
||||
|
|
@ -37,9 +39,11 @@ var CloudCommander, io;
|
|||
socket.on('disconnect', function () {
|
||||
JqueryTerminal = getJqueryTerminal();
|
||||
|
||||
outToTerminal({stderr: 'socket disconected'});
|
||||
|
||||
JqueryTerminal.Term.pause();
|
||||
if(JqueryTerminal){
|
||||
outToTerminal({stderr: 'socket disconected'});
|
||||
|
||||
JqueryTerminal.Term.pause();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue