Send an Extension Response with room.getUserList() ?
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
Send an Extension Response with room.getUserList() ?
I was just wondering how I can send an extension reponse with the room's user list, as an array, back to the client to be handled on the EXTENSION_RESPONSE handler. I've been trying to do this for a while now and just can't get the coding correct. I'm still learning Java, so any help would be greatly appreciated!
SFS-Tutorials: http://sfs-tutorials.blogspot.com/
-
- Posts: 13
- Joined: 09 Dec 2011, 03:28
Re: Send an Extension Response with room.getUserList() ?
send("YourExtensionName", rtnObj, parentRoom.getUserList());
parentRoom being the room object
parentRoom being the room object
Re: Send an Extension Response with room.getUserList() ?
It's not clear if you want to send the list of Rooms as the response data, or if you want to send your response to all people in that Room.
Which one?
Which one?
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
Re: Send an Extension Response with room.getUserList() ?
I'm wanting to send the room's user list to one user.
SFS-Tutorials: http://sfs-tutorials.blogspot.com/
Re: Send an Extension Response with room.getUserList() ?
coolboy714cp wrote:I'm wanting to send the room's user list to one user.
Then the courageous' answer is wrong. You have to use a loop to go through the list of users, retrieve the details you need and send them as a list of SFSObjects.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Who is online
Users browsing this forum: No registered users and 43 guests