Code: Select all
private Room CreateRoom(String roomName, int maxUserCount, User user)
{
Room newRoom = null;
// Here we pass the room parameters
HashMap<String, String> map = new HashMap<String, String>();
map.put("name", roomName);
map.put("pwd", "");
map.put("maxU", String.valueOf(maxUserCount));
map.put("maxS", "0");
map.put("isGame", "true");
try
{
newRoom = helper.createRoom(this.currentZone, map, user, true, true);
}
catch(ExtensionHelperException ehe)
{
this.trace("Could not create room " + roomName + ". Reason: " + ehe.getMessage());
}
return newRoom;
}
According to the java docs for extension helper the last two parameters should be:
- sendUpdate - Update the clients about the new room created (true is recommended, otherwise clients will be out of synch with their Room Lists)
broadcastEvent - Broadcast the event internally.
However, the updates are never sent down to the client so when the user creating the room attempts to join it, that user cannot "find" the room inside the client side room list (using the c# api).
Is this expected behavior? Am I possibly doing something incorrectly?
Any help is appreciated.
DL