XMPPStopListenerIfc vs XMPPPresenceUpdateProcessorIfc
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.
Added by Artur Hefczyc 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: