v2.0.0 Alpha 2
Pre-release
Pre-release
adam-fowler
released this
12 Apr 10:26
·
19 commits
to main
since this release
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