use java extension create room then joinroom fail
use java extension create room then joinroom fail
i use java extension create new room in server-side, when room is not existing it will create it. Now in client-side sendXtMessage create room and listener SFSEvent.onExtensionResponse then use sf.joinRoom ,the problem is sometime that success but sometime is fail. i find that in the server-side console where display trace create new room all success but joinroom function sometime is not receiver
You should join the room only when you receive the onRoomAdded event, not when your Extension replies.
Makes sense?
In other words you should execute the join call when in the client side onRoomAdded event.
As a side note, if you create the Room from server side you should probably also join it from there. It's easier.
The client will just receive a series of events:
1- onRoomAdded
2- onJoinRoom
hope it helps
Makes sense?
In other words you should execute the join call when in the client side onRoomAdded event.
As a side note, if you create the Room from server side you should probably also join it from there. It's easier.
The client will just receive a series of events:
1- onRoomAdded
2- onJoinRoom
hope it helps