---
title: relativePriority
framework: network
role: symbol
role_heading: Instance Property
path: network/nwconnection/contentcontext/relativepriority
---

# relativePriority

A relative value of priority used to reorder contexts when sending.

## Declaration

```swift
final let relativePriority: Double
```

## Discussion

Discussion Relative priority of contexts only affects ordering when there is a queue of messages to be sent. The priority is a double ranging from 0.0 to 1.0, where default messages are set to 0.5.

## See Also

### Creating Custom Send Contexts

- [init(identifier:expiration:priority:isFinal:antecedent:metadata:)](network/nwconnection/contentcontext/init(identifier:expiration:priority:isfinal:antecedent:metadata:).md)
- [identifier](network/nwconnection/contentcontext/identifier.md)
- [protocolMetadata](network/nwconnection/contentcontext/protocolmetadata.md)
- [NWProtocolMetadata](network/nwprotocolmetadata.md)
- [antecedent](network/nwconnection/contentcontext/antecedent.md)
- [expirationMilliseconds](network/nwconnection/contentcontext/expirationmilliseconds.md)
