code: def _read_loop_polling(self):
          
          while self.state == 'connected':
              self.logger.info(
                  'Sending polling GET request to ' + self.base_url)
              r = self._send_request(
                  'GET', self.base_url + self._get_url_timestamp())
              if r is None:
                  self.logger.warning(
                      'Connection refused by the server, aborting')
                  self.queue.put(None)
                  break
              if r.status_code != 200:
                  self.logger.warning('Unexpected status code %s in server '
                                      'response, aborting', r.status_code)
                  self.queue.put(None)
                  break
              try:
                  p = payload.Payload(encoded_payload=r.content)
              except ValueError:
                  self.logger.warning(
                      'Unexpected packet from server, aborting')
                  self.queue.put(None)
                  break
              for pkt in p.packets:
                  self._receive_packet(pkt)
  
          self.logger.info('Waiting for write loop task to end')
          self.write_loop_task.join()
          self.logger.info('Waiting for ping loop task to end')
          self.ping_loop_event.set()
          self.ping_loop_task.join()
          if self.state == 'connected':
              self._trigger_event('disconnect', run_async=False)
              try:
                  connected_clients.remove(self)
              except ValueError:  # pragma: no cover
                  pass
              self._reset()
          self.logger.info('Exiting read loop task')
docs: Read packets by polling the Engine.IO server.