Initializer
NetSocketStream(NetSocketStream unknown)
Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
endHandlershared actual default NetSocketStream endHandler(Anything()? endHandler)

Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called.

exceptionHandlershared actual default NetSocketStream exceptionHandler(Anything(Throwable)? handler)

Set an exception handler.

handlershared actual default NetSocketStream handler(Anything(NetSocket)? handler)

Set a data handler. As data is read, the handler will be called with the data.

pauseshared actual default NetSocketStream pause()

Pause the ReadSupport. While it's paused, no data will be sent to the dataHandler

resumeshared actual default NetSocketStream resume()

Resume reading. If the ReadSupport has been paused, reading will recommence on it.

Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: ReadStream<T>
Methods inherited from: StreamBase