Project

General

Profile

Presence mechanism

Keren Meir
Added over 5 years ago

Hi,

Two questions:

  1. Does the presence of each user saved somewhere in the db?

  2. If I want to add something to the presence mechanism (i.e add a new kind of presence (in a meeting etc..), change behavior of presence), Where is the best place to do it:

  • adding new plugin?

  • change the current Presence.java code


Replies (4)

Added by Wojciech Kapcia TigaseTeam over 5 years ago

  1. no, currently presence information is not saved in the db, but it could be added relatively simple with a plugin, please see Tigase DB Schema Explained

  2. in my opinion it would be the best to extend current presence plugin and override only necessary parts; however adding new kind of presence (as per Show Element) could be more of a client side addition.

Added by Keren Meir over 5 years ago

Thanks. I'll use it.

Another question: How the probe mechanism works?

I mean, when a user connects, he gets his roster, now, he gets their presence, the question is:

Does the client sent the probe (ask for their presence) ?

or

Does the server sent the request to himself and then send presence to the client?

or

Does the server check for the presence of the users in his roster and send them to client?

Thanks again

Added by Wojciech Kapcia TigaseTeam over 5 years ago

Actually this is described in the RFC1621, 4.3. Presence Probes , which Tigase follows:

A "presence probe" is a request for a contact's current presence information, sent on behalf of a user by the user's server; syntactically it is a presence stanza whose 'type' attribute has a value of "probe".

so it would be your second guess.

Added by Keren Meir over 5 years ago

Thank you very much!

    (1-4/4)