code: def pong(self, event='PONG', data='', **kw):  # pragma: no cover
          
          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()))
docs: P0NG/PING