Fix bug: When the connection is closed, the oneror event is not captured under the IE browser

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-02-07 12:23:57 +08:00
parent fc5444131a
commit dee878a493
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -356,6 +356,10 @@ export default {
}
});
ws.on('error', ()=> {
this.logout(null, term);
});
ws.on('close', ()=> {
this.logout(null, term);
});