'Start the XEP-0199 plugin.'

def plugin_init(self):

    register_stanza_plugin(Iq, Ping)
    self.xmpp.register_handler(Callback('Ping', StanzaPath('iq@type=get/ping'), self._handle_ping))
    if self.keepalive:
        self.xmpp.add_event_handler('session_start', self.enable_keepalive, threaded=True)
        self.xmpp.add_event_handler('session_end', self.disable_keepalive)
