Skip to content

Commit 1030381

Browse files
committed
Raise maximum WebSocket frame size to 100 MB
1 parent 9f8a730 commit 1030381

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

AirMessage/Connection/Connect/DataProxyConnect.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ class DataProxyConnect: DataProxy {
9999
tlsConfiguration.additionalTrustRoots = [.certificates(certificates)]
100100
tlsConfiguration.trustRoots = .certificates([])
101101
}
102+
let webSocketConfiguration = WebSocketClient.Configuration(
103+
tlsConfiguration: tlsConfiguration,
104+
maxFrameSize: 1024 * 1024 * 100 //100 MB
105+
)
102106

103-
WebSocket.connect(to: components.url!, headers: headers, configuration: WebSocketClient.Configuration(tlsConfiguration: tlsConfiguration), on: eventLoopGroup, onUpgrade: { [weak self] webSocket in
107+
WebSocket.connect(to: components.url!, headers: headers, configuration: webSocketConfiguration, on: eventLoopGroup, onUpgrade: { [weak self] webSocket in
104108
//Report open event
105109
self?.processingQueue.async { [weak self] in
106110
guard let self = self else { return }

0 commit comments

Comments
 (0)