Forum Multiplayer Will player.send ALWAYS occur AFTER denying AllowUserJoin?

Discussion and help relating to the Player.IO Multiplayer API

Will player.send ALWAYS occur AFTER denying AllowUserJoin?

Postby trueicecold » December 14th, 2011, 11:18 pm

Will player.send ALWAYS occur AFTER denying AllowUserJoin?

Since even if I'm not allowed to join into a room, I get a success callback in the client, I created a messageHandler of "RoomFull", and when denied, this handler pops up.

Can I rely on the assumption the handler will never pop before I got the success callback, and by that, miss the "RoomFull" message?
trueicecold
 
Posts: 11
Joined: October 10th, 2011, 1:53 pm

Re: Will player.send ALWAYS occur AFTER denying AllowUserJoi

Postby Oliver » January 2nd, 2012, 10:37 am

Anything you .Send() to the user inside the AllowUserJoin method will reach the client before the connection is disconnected if you return false in AllowUserJoin.

- Oliver
User avatar
Oliver
.IO
 
Posts: 1136
Joined: January 12th, 2010, 8:29 am


Return to Multiplayer



cron