def _on_ready_read(self):
        """ Read bytes when ready read """
        while self.bytesAvailable():
            if not self._header_complete:
                self._read_header()
            else:
                self._read_payload()
def _on_ready_read ( self ) : while self . bytesAvailable ( ) : if not self . _header_complete : self . _read_header ( ) else : self . _read_payload ( )
Read bytes when ready read