code: def streamRead(self, size):
          
          size = int(size)
          data = self.stream.read(size)
          size = len(data)
          if size == 0:
              self._close()
              return dict(message="Finished", size=0)
  
          self._sendResult(dict(message="reading...", stream=True, size=size))
          sys.stdout.write(data)
docs: Send or receive a chunk of data.
  
          :arg size:  Amount of data requested.