mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +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', () => {
|
this.connection.addEventListener('close', () => {
|
||||||
console.log('home stream closed');
|
console.log('home stream closed');
|
||||||
|
|
||||||
|
this.connection.reconnect();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.connection.addEventListener('message', message => {
|
this.connection.addEventListener('message', message => {
|
||||||
|
|
Loading…
Reference in a new issue