Objects of this class represent a stream that can be used to receive data from a peer. You can't create objects of this class directly. You will receive an instance via the receivedStream event.
Closes the stream.
Reads up to a given number of from the stream.
The streamReadCompleted event is fired when the operation is completed.
The maximum number of bytes to read. The default is 1024 bytes.
The number of bytes actually read, or -1 if an error occurs.
Returns a Boolean value that indicates whether the stream has bytes available to read.