Request presence

Pascal S
Added almost 5 years ago

Hi everyone

I was wondering if there was a way for a given user to request the presence from a user of its roster.

Let me be more specific, after establishing initial connection (and though receiving everyones presence status) a given user A would like to request user's B presence even if it has not change.

I wasn't able to find a specific stanza for such a behavior and was wondering if Tigase could offer such a feature.

Thanks in advance and sorry if it's a dumb question.

Replies (2)


Added by Artur Hefczyc TigaseTeam almost 5 years ago

As far as I know there is no way to do it solely on the client side. Neither the XMPP spec nor any of extensions allow for what you want to do, hence there is no way to force XMPP server to return user's presence.

To do this you would need some custom logic on the server and a custom request to which the custom logic would respond.

Added by Pascal S almost 5 years ago

That's what I feared.

I think I will have to store users presence at first connection in order to retrieve it later.

Thanks anyway for taking the time.