Project

General

Profile

XMPPStopListenerIfc vs XMPPPresenceUpdateProcessorIfc

Nauman Bashir
Added over 4 years ago

Hi,

We've a custom component that needs presence information. Earlier we were using just XMPPPresenceUpdateProcessorIfc. But we noticed that in case a connection is stopped by watchdog, it only notifies those plugins that implement XMPPStopListenerIfc.

So we added this interface to our plugin as well. It solved the the issue of watch dog connection closer. And now we face another issue that in case of a normal connection closing, presence information if forwarded to both XMPPPresenceUpdateProcessorIfc and XMPPStopListenerIfc. And our component receives this information twice.

We are using tigase 5.2.0 b3447.

Thanks.


Replies (1)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam over 4 years ago

My suggestion is to use Tigase built-in features for presence forwarding rather than implementing own plugin to do the work:

  1. http://www.tigase.org/content/vhost-presence-forward-jid

  2. http://www.tigase.org/content/presence-forwarding

    (1-1/1)