mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 13:17:59 +00:00
Recconect
This commit is contained in:
parent
e8f5852540
commit
ac3abc0210
|
@ -30,6 +30,8 @@ export default class ReversiModule implements IModule {
|
||||||
|
|
||||||
this.reversiConnection.addEventListener('close', () => {
|
this.reversiConnection.addEventListener('close', () => {
|
||||||
console.log('reversi stream closed');
|
console.log('reversi stream closed');
|
||||||
|
|
||||||
|
this.reversiConnection.reconnect();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.reversiConnection.addEventListener('message', message => {
|
this.reversiConnection.addEventListener('message', message => {
|
||||||
|
|
Loading…
Reference in a new issue