I am trying to create a room by the user when there are no rooms currently with the matched properties and with space for the player.
I am currently searching for rooms with
warpClient->joinRoomInUserRange(0, 7, 7);
then checking for a failed join in onConnectDone to create a new room with
std::map <string, string> properties;
properties["level"] = "1";
warpClient->createRoom(std::string("userCreatedRoom"), std::string("Admin"), 8, properties);
but after this, onRoomCreated is never called even though I can see in the server output that the room has been created as I have
public void handleCreateRoomRequest(IUser user, IRoom room, HandlingResult result)
System.out.println(user.getName() + " requested to create room " + room.getName() + " with ID " + room.getId());
How do I get my app to callback onRoomCreated?
Is it also possible to search for a room with certain properties, like with using joinRoomWithProperties, but also a certain range of current players?
Also, how do I get the properties of a room from within the server code? I want to find out what "level" property the room so I can apply the appropriate logic but I can only currently see that I can add and remove properties
Could someone also follow up this other question?