onUserLeftRoom event is not called

0 votes

Hi,

onUserLeftRoom event is not called when another user leaveRoom and unsubscribeRoom and I am sure that this person successfully left the room.

But this onUserLeftRoom is called when another user call disconnect()

 

How can this happen? I use turnbased room

 

I use this code:

LeaveRoom(){

warpClient.unsubscribeRoom(roomId);

warpClient.leaveRoom(roomId);

}

Regards;

closed with the note: Programmer's code problem.
asked Jan 12, 2015 in AppWarp by chamroeun (25 points)
closed Jan 12, 2015 by chamroeun
Hi,

I tried and its working for me.

What is the resultcode that you are getting in onLeaveRoomDone callback when a user calls leaveRoom() method?

Thanks
OnLeaveRoomDone result code is 4. I think it should be bad request(BAD_REQUEST). Is it because i call it at the wrong time or something?
Hi,
Since you got 4, this means your request for leaveRoom has failed. That's why no other player gets the notification.
4 i.e. Bad Request occurs, if your are not connected or if you are not part of that room.
You can try calling getLiveRoomInfo before calling leaveRoom to check if that  room has that user or not.
Thanks
Thanks,
I think it's my code problem. asynchronous call or something...
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
...