code: def getReqId(self) -> int:
          
          if not self.isReady():
              raise ConnectionError('Not connected')
          newId = self._reqIdSeq
          self._reqIdSeq += 1
          return newId
docs: Get new request ID.