# read

`import { read } from "destack:net";`

Read from one stream connection.

```ds title="read"
export function read(connection: &'a Connection, buffer: &'b [uint8]): AsyncResult<uint64, HostError>
```

[language/library/src/net/net.ds:90:92](https://github.com/destack-sh/destack/blob/main/language/library/src/net/net.ds#L90-L92)
