Streams Domain
The Streams domain provides stream-oriented utilities for processing inbound and outbound data without loading everything into memory.
aivi
use aivi.net.streamsTypes
aivi
type Stream A
type StreamError = { message: Text }Functions
| Function | Explanation |
|---|---|
fromSocket connection | Creates a stream of byte chunks from the connection. |
toSocket connection stream | Writes byte chunks from stream to the connection. |
chunks size stream | Rechunks a byte stream into fixed-size blocks of size. |