code: def heartbeat(self):
          
          unique_id = self.new_unique_id()
          message = {
              'op': 'heartbeat',
              'id': unique_id,
          }
          self._send(message)
          return unique_id
docs: Heartbeat request to keep session alive.