Provides the ability to read/write from a TCP socket in the effect F
.
- Companion
- object
Value members
Abstract methods
Indicates that this channel will not read more data. Causes End-Of-Stream
be signalled to available
.
This is a no-op on Node.js.
Indicates that this channel will not read more data. Causes End-Of-Stream
be signalled to available
.
This is a no-op on Node.js.
Reads up to maxBytes
from the peer.
Reads up to maxBytes
from the peer.
Returns None
if the "end of stream" is reached, indicating there will be no more bytes sent.
Reads exactly numBytes
from the peer in a single chunk.
Reads exactly numBytes
from the peer in a single chunk.
Returns a chunk with size < numBytes
upon reaching the end of the stream.
Writes bytes
to the peer.
Writes bytes
to the peer.
Completes when the bytes are written to the socket.