How to check room joinable in room list?
Posted: 08 Sep 2015, 18:03
Hi admin,
We can get room list using: and then foreach the room list to get the room name. User will try to sending request join the room
, server returns an event ROOM_JOIN or ROOM_JOIN_ERROR. In case the room is full, we get an error message "Room demoRoom is full".
My question: Why do we support a method which can check room is full for example:room.isFull() before we send request to join the room?
Thanks
We can get room list using:
Code: Select all
sfsClient.getRoomList();
Code: Select all
sfsClient.send(new JoinRoomRequest(roomName));
My question: Why do we support a method which can check room is full for example:room.isFull() before we send request to join the room?
Thanks