getGames method
Gets a list of games on the server
Implementation
@override
Future<IList<GameInfo>> getGames(PlayerID playerID) async {
final result = await socket.call(IOChannel.getgames, playerID);
return (json.decode(result as String) as List<dynamic>)
.map((v) => GameInfo.fromJson(v as Map<String, dynamic>))
.toIList();
}