[JDEV] Pubsub affiliations & resource
Ralph Meijer
jabber.org at ralphm.ik.nu
Mon Oct 20 03:11:33 CDT 2003
On Sun, Oct 19, 2003 at 05:51:28PM -0400, Justin Kirby wrote:
> >
> > All of it works but there are 2 problems:
> > - because only the program (jabbedo) understands the pubsub note
> > events, only jabbedo should recieve them (not the chat client running
> > on the same JID but with a different resource and a higher priority)..
> > BUT when i add an affiliation with a resource (name at server/jabbedo)
> > nothing will be recieved.
> >
> > - because jabbedo is only waiting for pubsub events (notes) and items
> > should not recieve roster information.. so i would not like to send
> > presence. But when i don't send presence i don't recieve any events.
> > Presence invisble still recieves all roster items and recieves all
> > offline messages.
> >
>
> You *have* to send presence before you can do anything. Simply discard
> any jabber stanzas that you are not interested in.
This is not true. You can receive messages directed to a resource even
when you don't send presence. At least this works with jabberd 1.4.2.
--
Groetjes,
Ralphm
More information about the JDev
mailing list