How to get a room list in corona

0 votes
Dear All,

I recently try to start with the sample of tic tac toe provided by Appwrap42.

I tis awesome but it do not have the lobby system. Therefore, I try to implement it by myselft.I try to add a new scroll list to get all room list insede.The room list should be generated from RoomTables. But it soesn't work and show roomis s are 1-9 instead of the real room id when I create the room.

Pease help.
asked Aug 31, 2014 in AppWarp by Sith Wong (10 points)
recategorized Oct 26, 2014 by sushil

1 Answer

0 votes
Hey,
 
AppWarp SDK has a method named getAllRooms(). This method when called, returns a list of room IDs in onGetAllRoomsDone callback. These rooms IDs are numeric and are not the ones that you supplied as room name during creation of a room. These IDs are unique identifiers for these rooms. You can call getLiveRoomInfo() to get more details about a room. You will need to pass this room ID in getLiveRoomInfo() method. The result will be provided in onGetLiveRoomInfoDone callback
 
Thanks
answered Aug 31, 2014 by Suyash Mohan (900 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...