/** * @inheritDoc */ public function run() { $wsClient = new PlayzoneClient('ws://ws.playzone.immortalchess.net:8081/', ['timeout' => -1]); $this->clientSender->sendIntroductionFromRobot($wsClient); }
/** * @param string $wsServerUrl * @param int $gameId */ public function sendGameFinish(string $wsServerUrl, int $gameId) { $wsClient = new PlayzoneClient($wsServerUrl, ['timeout' => -1]); $this->clientSender->sendGameFinish($wsClient, $gameId); }