Code: Select all
public void createGameRoom(String roomName) {
if (roomName.length() > 0) {
RoomExtension extension = new RoomExtension(EXTENSION_ID, EXTENSIONS_CLASS);
RoomSettings settings = new RoomSettings(roomName);
settings.setGroupId([i]GAME_ROOMS_GROUP_NAME[/i]);
settings.setGame(true);
settings.setMaxUsers(2);
settings.setMaxSpectators(0);
settings.setExtension(extension);
sfsClient.send(new CreateRoomRequest(settings, true ,sfsClient.getLastJoinedRoom()));
}
}
The client is sending well, but when the server answers the corresponding listener doesnt work (sfsClient.addEventListener(SFSEvent.ROOM_ADD, this);)
I have configured the group name for GAME_ROOMS_GROUP_NAME in the remote administrator, I have also added to extensions/tris folder the TrisExtension.jar extension.
I do not know what's failing, can u help me plz?. Chat is running OK, but the app fails when i press the button for create the room.
Thanks!