Deal with Sendable and clean up package in general (#158) * Bump Swift minimum to 5.10, update CI, make API docs exist, update README * Deal with a bunch of Sendable issues * Fix errors, deprecations, and outdated URL behavior in tests * Disable Android tests, update tests from the original NIOSSL source of the SSL helpers * Address PR feedback
Deal with Sendable and clean up package in general (#158) * Bump Swift minimum to 5.10, update CI, make API docs exist, update README * Deal with a bunch of Sendable issues * Fix errors, deprecations, and outdated URL behavior in tests * Disable Android tests, update tests from the original NIOSSL source of the SSL helpers * Address PR feedback
Deal with Sendable and clean up package in general (#158) * Bump Swift minimum to 5.10, update CI, make API docs exist, update README * Deal with a bunch of Sendable issues * Fix errors, deprecations, and outdated URL behavior in tests * Disable Android tests, update tests from the original NIOSSL source of the SSL helpers * Address PR feedback
Add support for proxying in WebsocketClient (#130) * WebsocketClient supports proxying Added support for TLS and plain text proxying of Websocket traffic. In the TLS case a CONNECT header is first sent establishing the proxied traffic. In the plain text case the modified URI in the initial upgrade request header indicates to the proxy server that the traffic is to be proxied. Use NIOWebSocketFrameAggregator to handle aggregating frame fragments. This brings with it more protections e.g. against memory exhaustion. Accompanying config has been added to support this change. * Reduce allocations and copies in WebSocket.send Reduce allocation and copies necessary to send ByteBuffer and ByteBufferView through WebSocket.send. In fact sending ByteBuffer or ByteBufferView doesn’t require any allocation or copy of the data. Sending a String now correctly pre allocates the ByteBuffer if multibyte characters are present in the String. Remove custom random websocket mask generation which would only generate bytes between UInt8.min..<UInt8.max, therefore excluding UInt8.max aka 255. * add DocC comments * DocC comments for new APIs
Deal with Sendable and clean up package in general (#158) * Bump Swift minimum to 5.10, update CI, make API docs exist, update README * Deal with a bunch of Sendable issues * Fix errors, deprecations, and outdated URL behavior in tests * Disable Android tests, update tests from the original NIOSSL source of the SSL helpers * Address PR feedback
1 year ago
WebSocketKit provides an abstraction over SwiftNIO's Websockets to make it easy to build websocket clients and servers in Swift. IT provides functionality to send and receive data, ping/pongs and text, connection handling and upgrade handling. It should be simpler to use than using SwiftNIO directly.
Introduction
可用于便捷构建 Swift WebSocket 客户端和服务器,提供数据收发、ping/pong、文本传输、连接及升级处理等核心功能,简化直接使用 SwiftNIO 的复杂度。【此简介由AI生成】