---
title: newConnectionLimit
framework: network
role: symbol
role_heading: Instance Property
path: network/networklistener/newconnectionlimit
---

# newConnectionLimit

Configure the listener’s new connection limit.

## Declaration

```swift
final var newConnectionLimit: Int { get set }
```

## Discussion

Discussion Use the value NWListener.InfiniteConnectionLimit to disable connection limits. If the value is not NWListener.InfiniteConnectionLimit, the value will be decremented by 1 every time a new connection is received. When the value reaches 0, the new connection handler will no longer be invoked until the the limit is increased.
