Skip to content

SessionPlus 2.2.0

Latest
Compare
Choose a tag to compare
@richardpiazza richardpiazza released this 25 Feb 13:42
· 3 commits to main since this release
d15b52f

This release introduces an async/await compatible WebSockets implementation. (The implementation is currently limited to Apple platforms.)

let socket = try AbsoluteURLWebSocket(baseURL: url)
try await socket.start()
for try await message in socket.receive() {
    processWebSocketMessage(message)
}