Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building an Openfire XMPP External Component - use Tinder or Whack?

I'm trying to build an external component for the Openfire XMPP server, but I'm a bit confused between Tinder and Whack. Tinder seems to be the newer library and has the AbstractComponent interface which Ignite Realtime are recommending over the standard Component, however, whenever anyone talks about building an external component, they seem to be using the Whack library.

Should I be using Tinder or Whack? Or a bit of both?

Many thanks

like image 305
Marc Avatar asked Nov 06 '22 03:11

Marc


1 Answers

Tinder utilises the Whack library and wraps the component in an abstract component interface so you don't have to implement all the methods for handling all types of packets if you don't need to.

Have a look at the source for the weather example.

It's also worth looking at the whack source to see how it handles the packets as this is what is ultimately connecting to your server and sending packets.

Personally I use the externalcomponent manager from whack and setup an abstract component using tinder which is exactly what the weatherabstract example does.

That's the best place to start.

like image 137
James W Avatar answered Nov 12 '22 20:11

James W