---
title: receive()
framework: network
role: symbol
role_heading: Instance Method
path: network/networkchannel/receive()-86md7
---

# receive()

Receive data from a connection.

## Declaration

```swift
func receive() async throws -> ApplicationProtocol.Message<Data>
```

## Discussion

Discussion This may be called before the connection is ready, in which case the receive request will be enqueued until the connection is ready.
