From ac3abc0210e23d7443543d6019e8afcd4744cf6d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Aug 2018 19:30:53 +0900 Subject: [PATCH] Recconect --- src/modules/reversi/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/reversi/index.ts b/src/modules/reversi/index.ts index e185f61..c5f9729 100644 --- a/src/modules/reversi/index.ts +++ b/src/modules/reversi/index.ts @@ -30,6 +30,8 @@ export default class ReversiModule implements IModule { this.reversiConnection.addEventListener('close', () => { console.log('reversi stream closed'); + + this.reversiConnection.reconnect(); }); this.reversiConnection.addEventListener('message', message => {