mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 23:48:01 +00:00
Recconect local-timeline stream
This commit is contained in:
parent
91995c9340
commit
f60a48659b
|
@ -107,6 +107,8 @@ export default class 藍 {
|
||||||
|
|
||||||
this.localTimelineConnection.addEventListener('close', () => {
|
this.localTimelineConnection.addEventListener('close', () => {
|
||||||
console.log('local-timeline stream closed');
|
console.log('local-timeline stream closed');
|
||||||
|
|
||||||
|
this.localTimelineConnection.reconnect();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.localTimelineConnection.addEventListener('message', message => {
|
this.localTimelineConnection.addEventListener('message', message => {
|
||||||
|
|
Loading…
Reference in a new issue