Recconect

This commit is contained in:
syuilo 2018-08-25 19:30:53 +09:00
parent e8f5852540
commit ac3abc0210

View file

@ -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 => {