18 lines
480 B
Python
18 lines
480 B
Python
|
#!/usr/bin/python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
from blasta.utilities.logger import UtilitiesLogger
|
||
|
#from slixmpp.exceptions import IqError, IqTimeout
|
||
|
import sys
|
||
|
|
||
|
logger = UtilitiesLogger(__name__)
|
||
|
|
||
|
class XmppPing:
|
||
|
|
||
|
async def to_self(xmpp_instance):
|
||
|
function_name = sys._getframe().f_code.co_name
|
||
|
logger.debug(f'{function_name},,Start')
|
||
|
rtt = await xmpp_instance.plugin['xep_0199'].ping()
|
||
|
logger.debug(f'{function_name},,Finish')
|
||
|
return rtt
|