exitGame method

  1. @override
Future<bool> exitGame(
  1. PlayerID playerID,
  2. GameCode code
)
override

Causes the client to exit the game

Implementation

@override
Future<bool> exitGame(PlayerID playerID, GameCode code) async {
  _socket!.off(IOChannel.gamestate.string);
  _socket!.off(IOChannel.lobby.string);
  logger.info('Exiting game');
  // gameStatus = GameStatus.NotJoined;
  return true;
}