Processing pubsub payloads in a plugin

Hi All,

Other than packetsniffer interface, is there any other way to receive Pubsub payloads in a plugin?

I want to write a app based on pubsub receiving custom payloads…want to make it work cleanly in openfire…