Open kitwtnb opened 4 months ago
Using MainActor properties in an unstructured task would cause build errors in Swift 6, so URLSessionWebSocketTask.receive(completionHandler:) was replaced with URLSessionWebSocketTask.receive() async throws.
URLSessionWebSocketTask.receive(completionHandler:)
URLSessionWebSocketTask.receive() async throws
This is cool thanks! Will try in a bit and merge!
This is weird, I've been testing it extensively and never received any message.
Using MainActor properties in an unstructured task would cause build errors in Swift 6, so
URLSessionWebSocketTask.receive(completionHandler:)
was replaced withURLSessionWebSocketTask.receive() async throws
.