Title: RE: [JDEV] Components that broadcast?
On the component, you want to send subscribed, then subscribe. On the
client, you want to reply to the presence subscription from the roster contact
(which by now should be type "1" as you call it), with an automatic
subscribed....
HTH -dbk
-----Original Message----- From:
[EMAIL PROTECTED] on behalf of Nauman Khan Sent: Tue
2/10/2004 3:01 AM To: [EMAIL PROTECTED] Cc:
Subject: RE: [JDEV] Components that broadcast?
Hi All,
I am working on a chat client using Jabber
Protocol, currently Add Contact Module. HEre is what i do
i send
presence request with type='subsribe' - additionally i also send a presence
with type='subscribed'
On Subscription request on other side, i send
presence with type='subscribed'
The problem is when i get Roster
Item, the subscription type is 1, which means that only other party
subcribed for presence - and this happens on both side. I am expecting it
to be value 3 - which means both way subscription. Please guide if i am
missing something.
Regards Nauman
-----Original
Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Trejkaz Xaoza Sent: Thursday, February 05, 2004 4:11 PM To:
[EMAIL PROTECTED] Subject: Re: [JDEV] Components that
broadcast?
-----BEGIN PGP SIGNED MESSAGE----- Hash:
SHA1
On Thu, 5 Feb 2004 20:20, Bret D. Wortman wrote: > I need to
write a component that's capable of sending a message to all > clients
currently connected to a server. Does anyone have
experience doing > this? > > Is it possible to get a list
of connected users from the server, or is > there another mechanism that
can be used to ensure all clients get a > message?
Supposing your
server were jabber.example.com, browsing jabber.example.com/admin gives you
a list of all online users, or simply sending a message to
jabber.example.com/announce/online will send a message to all online
users.
You can do either of these logged in as an admin user; how this
applies to components I'm not entirely sure, but they might be permitted to
use the same thing.
TX
- -- 'Every sufficiently
advanced technology is indistinguishable from magic' - Arthur C
Clarke 'Every sufficiently advanced magic is indistinguishable from
technology' - Tom Graves
Email:
Trejkaz Xaoza <[EMAIL PROTECTED]> Web site: http://xaoza.net/trejkaz/
Jabber ID: [EMAIL PROTECTED] -----BEGIN PGP
SIGNATURE----- Version: GnuPG v1.2.3
(GNU/Linux)
iD8DBQFAIiSwmifzwBMPxxoRAh1qAJ9EZLwJvfnRbzbN50BO1/Yshv+RuwCdGtJM 31ZF0vlWtH+5uDWzC/fJTyQ= =ZI5B -----END
PGP SIGNATURE----- _______________________________________________ jdev
mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
_______________________________________________ jdev
mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
|
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
https://jabberstudio.org/mailman/listinfo/jdev