2 Replies Latest reply on Oct 20, 2011 2:18 PM by nick

    PEP

    nick Bronze

      Hi, does XIFF currently support PEP (http://xmpp.org/extensions/xep-0163.html)? If not, I will have to implement it. Before I do so, is there any particular area in the source I should pay attention to or anything in particular to keep in mind?

       

      Thanks

        • PEP
          Mark Walters KeyContributor

          Hey Nick,

           

          Not supported yet. Full pubsub was on the plate at one point, but has yet to be supported either.

          If you do implement PEP, we would love it if you would consider contributing it back to the source.

          There are plenty of extension examples in the source code, you can look at them for reference on how to begin implementation.

          Let me know if you have any specific questions.

           

          Thanks!

          Mark

            • PEP
              nick Bronze

              Great - thanks for the help. First off, since PEP relies on CAPS, I'm implementing CAPS first. My first question regarding CAPS is what is the best way for my extension to listen for incoming IQ events. I couldn't find an example in the existing extensions. In the case of CAPS, it wouldn't be through registering a callback, since it's not purely request/response. That is, a CAPS request could come in as an IQ event:

               

              <iq type='get'

                  from='dude@stoner.com'

                  to='anotherdude@stoner.com/xiff'

                  id='info1'>

                <query xmlns='http://jabber.org/protocol/disco#info'/>

              </iq>

               

              So, what is the recommended way to listen for such an event.