platypush/platypush/plugins/xmpp/_handlers/_ping.py

15 lines
373 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 XmppPingHandler(XmppBaseHandler):
"""
Handler for the XMPP ping logic.
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._ping: aioxmpp.PingService = self._client.summon(aioxmpp.PingService)