'Send a heartbeat frame on the connection.'

def _send_heartbeat_frame(self):

    LOGGER.debug('Sending    heartbeat    frame')
    self._connection._send_frame(self._new_heartbeat_frame())
    self._heartbeat_frames_sent += 1
