def pong(self, event='PONG', data='', **kw):  # pragma: no cover
        """P0NG/PING"""
        self.bot.log.debug('%s ping-pong (%s)', event, data)
        if self.reconn_handle is not None:
            self.reconn_handle.cancel()
        self.reconn_handle = self.bot.loop.call_later(self.timeout,
                                                      self.reconnect)
        if self.ping_handle is not None:
            self.ping_handle.cancel()
        self.ping_handle = self.bot.loop.call_later(
            self.timeout - self.max_lag, self.bot.send,
            'PING :%s' % int(self.bot.loop.time()))
def pong ( self , event = 'PONG' , data = '' , ** kw ) : self . bot . log . debug ( '%s ping-pong (%s)' , event , data ) if self . reconn_handle is not None : self . reconn_handle . cancel ( ) self . reconn_handle = self . bot . loop . call_later ( self . timeout , self . reconnect ) if self . ping_handle is not None : self . ping_handle . cancel ( ) self . ping_handle = self . bot . loop . call_later ( self . timeout - self . max_lag , self . bot . send , 'PING :%s' % int ( self . bot . loop . time ( ) ) )
P0NG/PING