リバーシしないなら接続しないように

This commit is contained in:
mei23 2018-10-09 04:55:27 +09:00
parent e07415f4cb
commit bce44c7c05

View file

@ -20,6 +20,8 @@ export default class ReversiModule implements IModule {
private reversiConnection?: any;
public install = (ai: ) => {
if (!config.reversiEnabled) return;
this.ai = ai;
this.reversiConnection = new ReconnectingWebSocket(`${config.wsUrl}/games/reversi?i=${config.i}`, [], {