FiberSocket.read

ubyte[] read(size_t maxBytes) @trusted

Read up to maxBytes of data. Yields until data arrives or the connection closes.

Returns

A GC-owned copy of the received data. An empty array signals

that the remote end closed the connection (EOF).

Throws

FiberIoException on read error.