platypush/platypush/plugins/xmpp/_handlers/_pubsub.py

15 lines
378 B
Python
Raw Normal View History

2023-07-22 22:36:36 +02:00
import aioxmpp
from ._base import XmppBaseHandler
# pylint: disable=too-many-ancestors,too-few-public-methods
class XmppPubSubHandler(XmppBaseHandler):
"""
Handler for XMPP pub/sub events.
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.pubsub: aioxmpp.PubSubClient = self._client.summon(aioxmpp.PubSubClient)