Skip to content

v2.0.0 Alpha 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@adam-fowler adam-fowler released this 12 Apr 10:26
· 8 commits to main since this release
25963c8

Major release changes

  • WebSocketClient has been split into a separate library HumingbirdWSClient which is not dependent on the Hummingbird 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(_:) and WebSocketOutboundWriter.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