This request allows a client to request a list of games that are managed by the server. The list is filtered using the 'searchCriteria' property.
This example shows how to request a list of poker games, and capture the response.
private var _es:ElectroServer;
private function initialize():void {
_es.engine.addEventListener(MessageType.FindGamesResponse.name, onFindGamesResponse);
var fgr:FindGamesRequest = new FindGamesRequest();
fgr.searchCriteria = new SearchCriteria();
fgr.searchCriteria.gameType = "PokerGame";
_es.engine.send(qjr);
}
private function onFindGamesResponse(e:FindGamesResponse):void {
}