code: def _read_socket(self):
          
          while True:
              base_bytes = self._socket.recv(BASE_SIZE)
              base = basemessage.parse(base_bytes)
              payload_bytes = self._socket.recv(base.payload_length)
              self._handle_message(packet.parse(base_bytes + payload_bytes))
docs: Process incoming messages from socket.