powered by Jive Software

Callbacks/Webhooks?

Is there a plugin that could grant me HTTP callbacks/webhooks on incoming messages?

Basically I just want any incoming message (regardless of who its from/to) to be POSTed to an HTTP endpoint. Don’t care about IQ or presence or rosters or any other XMPP shenanigans, I just want to receive a plain old HTTP POST of any and all messages.

I don’t think there is, but it should not be to hard to create a plugin that does that.

You’d basically create a plugin, that initiates a PacketInterceptor, ignore all stanzas but the ones that you’re interested in, and post those stanzas using any HTTPClient library.

For performance, you might want to make this code asynchronous, so that the network IO of the HTTP call does not affect the performance of packet routing in Openfire.