Send or receive a chunk of data.

        :arg size:  Amount of data requested.

def streamRead(self, size):
        """ Send or receive a chunk of data.

        :arg size:  Amount of data requested.
        """
        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)