_server.leaveRoom cause of Client API error
Posted: 18 Oct 2010, 12:04
Hello,
I need to create a room and join users to it without update sending to other clients.
For this goal I do following:
//sendUpdate property = false
then I call "joinRoom":
//sendUpdate property = false
But however when I call "_server.leaveRoom" function
//broadcastAll = false
I get an error in the "handleUserLeaveRoom" method (SysHandler class of Smartfox client API).
I don't need to send notifications(join/create/leave room) to other clients. But How I can disconnect users from the room without the error on the client side?
I need to create a room and join users to it without update sending to other clients.
For this goal I do following:
//sendUpdate property = false
Code: Select all
_server.createRoom(roomObj, null, false, false);//sendUpdate property = false
Code: Select all
_server.joinRoom(user1, -1, false, newRoom.getId(), null, false, false);
_server.joinRoom(user2, -1, false, newRoom.getId(), null, false, false);
//broadcastAll = false
Code: Select all
_server.leaveRoom(user2, roomID, false);I don't need to send notifications(join/create/leave room) to other clients. But How I can disconnect users from the room without the error on the client side?