Question on rooms

0 votes

1. onGetAllRoomsDone(AppWarp::liveresult res) returns the ID of the room? or name of the room?

2. if question 1 returns ID, how can we get the ID of the created room AppWarp::Client::getInstance()->createRoom(userName, def->getStringForKey("nickname"), 2); because if we try to warpClientRef->joinRoom(userName); it fails.

 

I have answer for number 1 & 2 already onCreateRoomDone(AppWarp::room revent) & revent.roomId

 

Follow up question

1. We created a room  AppWarp::Client::getInstance()->createRoom(userName, def->getStringForKey("nickname"), 2); and userName is abcdef. is abcdef the room ID? because when onCreateRoomDone(AppWarp::room revent) is called revent.roomId returns an string of numbers not abcdef, is it converted to int?

asked Feb 10, 2015 in AppWarp by jvfiel (35 points)
edited Feb 10, 2015 by jvfiel

1 Answer

0 votes
Hi,

Username is the one needed to connect to AppWarp. It is different from RoomID. Each room has a name and Id. Name does not have much role and can be anything you want. RoomID is required to join/subscribe a room. RoomID can be get when create a room. Although the data type of roomID is a string but it is made up of numbers.

Thanks
answered Feb 10, 2015 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
...