mirror of
https://github.com/syuilo/ai.git
synced 2024-11-21 20:58:00 +00:00
リバーシしないなら接続しないように
This commit is contained in:
parent
e07415f4cb
commit
bce44c7c05
|
@ -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}`, [], {
|
||||
|
|
Loading…
Reference in a new issue