Skip to content

v1.0.0 Release Candidate 2

Compare
Choose a tag to compare
@adam-fowler adam-fowler released this 30 Jan 12:26
· 52 commits to main since this release
cbe5fec

Breaking Change

  • HBWebSocket(_:promise) does not have a default value for promise anymore.

Minor Release Changes

  • Add versions of HBWebSocket.write/close/sendPing that return an EventLoopFuture as an alternative to the ones that you pass an optional EventLoopPromise into.
  • Add async/await version of HBWebSocket.write/close/sendPing.
  • Add HBWebSocket.readStream that returns an AsyncStream<WebSocketData>. The AsyncStream will finish when the web socket is closed.