fix(chat): improve history + polish SwiftUI panel

This commit is contained in:
Peter Steinberger
2025-12-14 04:18:21 +00:00
parent 01341d983c
commit e0545e2f94
5 changed files with 61 additions and 44 deletions

View File

@@ -43,7 +43,10 @@ protocol WebSocketSessioning: AnyObject {
extension URLSession: WebSocketSessioning {
func makeWebSocketTask(url: URL) -> WebSocketTaskBox {
WebSocketTaskBox(task: self.webSocketTask(with: url))
let task = self.webSocketTask(with: url)
// Avoid "Message too long" receive errors for large snapshots / history payloads.
task.maximumMessageSize = 16 * 1024 * 1024 // 16 MB
return WebSocketTaskBox(task: task)
}
}