Getting the users in the lobby (Cocos2D-x)

+1 vote
I am using the 1.6 version. After I successfully connect I call

        AppWarp::Client *warpClientRef;
        warpClientRef = AppWarp::Client::getInstance();
        warpClientRef->getLiveLobbyInfo();

However, in onGetLiveLobbyInfoDone the levent.users vector is always empty, regardless whether I am connected to the same lobby from another device. I logged the users.size, rm.name and rm.id levent properties:

onGetLiveLobbyInfoDone: SUCCESS 0 users, room name: mainLobby, room id: mainLobby
 

What could cause the fact that I'm not seeing other users in the lobby (although they are connected and not in any room)?
asked Apr 24, 2014 in AppWarp by clawoo (20 points)

1 Answer

0 votes
 
Best answer
Lobby is a special type of room. So you need to join it like you would do with a room.

So, make sure that your players have joined the lobby by calling joinLobby() method. Also verify whether you are getting success in onJoinLobbyDone listener.
answered Apr 25, 2014 by Suyash Mohan (900 points)
selected Apr 25, 2014 by clawoo
You're right, I had to manually join the lobby, I assumed that would happen automatically. Thanks!
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
...