---
title: maximumMessageSize
framework: network
role: symbol
role_heading: Instance Property
path: network/nwprotocolwebsocket/options/maximummessagesize
---

# maximumMessageSize

The maximum allowed message size, in bytes, to be received by the WebSocket connection.

## Declaration

```swift
var maximumMessageSize: Int { get set }
```

## See Also

### Configuring WebSocket Options

- [init(_:)](network/nwprotocolwebsocket/options/init(_:).md)
- [NWProtocolWebSocket.Version](network/nwprotocolwebsocket/version.md)
- [autoReplyPing](network/nwprotocolwebsocket/options/autoreplyping.md)
