Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Obtaining XMPP Chat Room Users
Obtaining XMPP Chat Room Users [message #618840] Tue, 17 July 2007 18:32 Go to next message
Eclipse User
Originally posted by: robertxlongo.gmail.com

I know that I can add an IChatRoomParticipantListener to a
IChatRoomContainer to listen for participants arriving and departing from an
XMPP chat room; however, I can't seem to figure out how to obtain the
initial list of chat room participants. Is this even possible?

The comments for bug #167363
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=167363) discuss this problem
but I cannot figure out if there was a resolution.

Thanks,
Robert
Re: Obtaining XMPP Chat Room Users [message #618841 is a reply to message #618840] Tue, 17 July 2007 18:56 Go to previous messageGo to next message
Scott Lewis is currently offline Scott Lewis
Messages: 966
Registered: July 2009
Senior Member
Hi Robert,

Robert Longo wrote:
> I know that I can add an IChatRoomParticipantListener to a
> IChatRoomContainer to listen for participants arriving and departing
> from an XMPP chat room; however, I can't seem to figure out how to
> obtain the initial list of chat room participants. Is this even possible?

If the IChatRoomParticipantListener is registered with the enclosing
IChatRoomContainer before the IChatRoomContainer.connect() call is made,
then it will be notified via handleArrived(IUser user) (followed by
followed by a handlePresenceUpdated()) of all current chat room
participants.

Then, after arrival, if other users come or go they will similarly
result in handleArrived/handlePresenceUpdated (join), or
handlePresenceUpdated/handleDeparted (left) notifications.

Unlike the roster, the chat room participants list is not maintained as
state within the provider. If there is a use case where this is not
sufficient (where it's necessary to have a 'getCurrentParticipants()'
method on the IChatRoomContainer) please let us know.

Scott

>
> The comments for bug #167363
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=167363) discuss this
> problem but I cannot figure out if there was a resolution.
>
> Thanks,
> Robert
>
>
Re: Obtaining XMPP Chat Room Users [message #618842 is a reply to message #618841] Tue, 17 July 2007 19:19 Go to previous message
Eclipse User
Originally posted by: robertxlongo.gmail.com

Hi Scott,

That worked.

Thank you for the quick response!

Best regards,
Robert

"Scott Lewis" <slewis@composent.com> wrote in message
news:469D4932.4060109@composent.com...
> Hi Robert,
>
> Robert Longo wrote:
>> I know that I can add an IChatRoomParticipantListener to a
>> IChatRoomContainer to listen for participants arriving and departing from
>> an XMPP chat room; however, I can't seem to figure out how to obtain the
>> initial list of chat room participants. Is this even possible?
>
> If the IChatRoomParticipantListener is registered with the enclosing
> IChatRoomContainer before the IChatRoomContainer.connect() call is made,
> then it will be notified via handleArrived(IUser user) (followed by
> followed by a handlePresenceUpdated()) of all current chat room
> participants.
>
> Then, after arrival, if other users come or go they will similarly result
> in handleArrived/handlePresenceUpdated (join), or
> handlePresenceUpdated/handleDeparted (left) notifications.
>
> Unlike the roster, the chat room participants list is not maintained as
> state within the provider. If there is a use case where this is not
> sufficient (where it's necessary to have a 'getCurrentParticipants()'
> method on the IChatRoomContainer) please let us know.
>
> Scott
>
>>
>> The comments for bug #167363
>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=167363) discuss this
>> problem but I cannot figure out if there was a resolution.
>>
>> Thanks,
>> Robert
>>
Previous Topic:ECF 1.0.0
Next Topic:Sending Invitations to XMPP Chat
Goto Forum:
  


Current Time: Wed Jul 30 21:30:07 EDT 2014

Powered by FUDForum. Page generated in 0.02044 seconds