swift-nio-extras
swift-nio-extras copied to clipboard
Feature Request: WebSocket Compression Support
As mentioned here, it would be great if SwiftNIO supported WebSocket compression either out of the box or as a separate library (e.g. this library). RFC 7692 details the client–server negotiation mechanism and an initial compression algorithm that clients/servers can support.
Personally, I’m a user of Vapor, which is built on top of SwiftNIO. I don’t have a clear picture right now how to best implement either of the above. However, here are some potential resources:
- Kitura-WebSocket-Compression. Does not seem to handle client–server negotiation.
- Vapor WebSocketKit pull request. Does not (yet) handle client–server negotiation.