Releases: hummingbird-project/hummingbird-websocket
Releases · hummingbird-project/hummingbird-websocket
v2.0.0 Release Candidate 1
Breaking changes
- Add specific contexts for client and server
WebSocketClient.Context
andHTTP1WebSocketUpgradeChannel.Context
respectively instead of usingBasicWebSocketContext
and removeBasicWebSocketContext
.
Minor release changes
- Added
HummingbirdWSTesting
test framework for testing WebSockets
v2.0.0 Beta 5
Use Hummingbird v2.0.0 Release Candidate
v2.0.0 Beta 4
Breaking changes
- Changes required by RequestContext with associatedtype Source in #64
v2.0.0 Beta 3
Minor release changes
- Updates for Hummingbird beta 6
v2.0.0 Beta 2
Breaking changes
- Updates required from changes in Hummingbird beta 5. PR #62
v2.0.0 Beta 1
Minor release changes
- Update for non-generic HTTPChannelBuilder. PR #59
v2.0.0 Alpha 3
Major release changes
- Add missing ServiceLifecycle dependency to HummingbirdWSClient. PR #56 from @tkrajacic
- Return close code and reason from
WebSocketClient.connect
. PR #58
Minor changes
- Require CompressNIO v1.2 with decompression fix
- Add minimum size of frame before running per message-deflate compression configuration. PR #57
- Add
WebSocketOutboundWriter.close(_:reason:)
to close WebSocket connection with custom close code and reason
Patch changes
- Improve trace output of frames.
- Fix bug where exiting a handler because you received a close frame would hang. PR #57
v2.0.0 Alpha 2
Major release changes
- WebSocketClient has been split into a separate library
HumingbirdWSClient
which is not dependent on theHummingbird
library. - Common WebSocket code used by both server and client is in
HummingbirdWSCore
. - The WebSocketHandler inbound stream no longer collates WebSocket frames into full messages. If you want messages you can use
WebSocketInboundStream.messages(maxSize:)
to get a stream of collated WebSocketMessages.
Minor release changes
- Added
WebSocketOutboundWriter.withTextMessageWriter(_:)
andWebSocketOutboundWriter.withBinaryMessageWriter(_:)
to write WebSocket messages over a series of WebSocket frames. - Update compress-nio to v1.2.0 to get bug fix in decompression code.
Patch release changes
- Set
host
header in initial HTTP request. - Don't drop left over bytes after WebSocket upgrade.
- Fail connection on receiving a reserved opcode
- Verify inbound close code is correct
- Add mask to outbound close code for client
- add SNI hostname for TLS in client
Other changes
- Added scripts to test WebSocket code against autobahn-testsuite
v2.0.0 Alpha 1
Major release changes
- Structured concurrency based rewrite of WebSocket server and client support to work with Hummingbird v2.0
- Client and Server support both available from HummingbirdWebsocket
permessage-deflate
compression available from HummingbirdWSCompression
v1.2.0
Minor release changes
- Add support for WebSocket extensions and implement permessage-deflate extension as described in https://www.rfc-editor.org/rfc/rfc7692. PR #27
- Make
HBWebSocket
conform to Sendable. Split auto ping code off into a separate internally managed type. PR #30 - Minimum supported version of Swift is now 5.7