mirror of
https://github.com/syuilo/ai.git
synced 2025-01-31 15:39:10 +00:00
Recconect when stream closed
This commit is contained in:
parent
473738382b
commit
e8f5852540
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ export default class 藍 {
|
|||
|
||||
this.connection.addEventListener('close', () => {
|
||||
console.log('home stream closed');
|
||||
|
||||
this.connection.reconnect();
|
||||
});
|
||||
|
||||
this.connection.addEventListener('message', message => {
|
||||
|
|
Loading…
Reference in a new issue