Fix tvOS report export

This commit is contained in:
世界
2026-04-23 08:12:53 +08:00
parent 8480bc3bb6
commit dd5bb31c3f
4 changed files with 161 additions and 68 deletions
@@ -81,6 +81,14 @@ public final class NWSocket {
try await sendAndAwait(content: LibboxEncodeChunkedMessage(data), timeout: timeout, phase: "write")
}
public func readRaw(count: Int, timeout: TimeInterval = 60) async throws -> Data {
try await receiveExactly(count: count, timeout: timeout, phase: "read raw body")
}
public func writeRaw(_ data: Data, timeout: TimeInterval = 30) async throws {
try await sendAndAwait(content: data, timeout: timeout, phase: "write raw body")
}
public func send(_ data: Data?) {
guard let data else {
return