mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 23:48:01 +00:00
リバーシしないなら接続しないように
This commit is contained in:
parent
e07415f4cb
commit
bce44c7c05
|
@ -20,6 +20,8 @@ export default class ReversiModule implements IModule {
|
||||||
private reversiConnection?: any;
|
private reversiConnection?: any;
|
||||||
|
|
||||||
public install = (ai: 藍) => {
|
public install = (ai: 藍) => {
|
||||||
|
if (!config.reversiEnabled) return;
|
||||||
|
|
||||||
this.ai = ai;
|
this.ai = ai;
|
||||||
|
|
||||||
this.reversiConnection = new ReconnectingWebSocket(`${config.wsUrl}/games/reversi?i=${config.i}`, [], {
|
this.reversiConnection = new ReconnectingWebSocket(`${config.wsUrl}/games/reversi?i=${config.i}`, [], {
|
||||||
|
|
Loading…
Reference in a new issue