mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 13:17:59 +00:00
Recconect when stream closed
This commit is contained in:
parent
473738382b
commit
e8f5852540
|
@ -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