Skip to content

v1.1.0

Compare
Choose a tag to compare
@gobwas gobwas released this 12 Jul 09:40
· 21 commits to master since this release

Notes

Compression support

This release adds wsflate package implementing WebSocket Compression Extension logic.

API

  • Added ws.UnmaskFrame() and ws.UnmaskFrameInPlace() helpers to be symmetrical with already existing ws.MaskFrame() and ws.MaskFrameInPlace()
  • Added ws/wsutil.Reader.MaxFrameSize field (thanks to @agnivade)
  • Added ability to obtain WebSocket handshake rejection HTTP status code from errors returned during upgrade

Bug Fixes

  • Fixed incorrect buffer recalculation logic inside wsutil.Writer.Grow(), which was leading to panic with message "wsutil: buffer grow leads to its reduce" (thanks to @ZekeLu)

Development

  • Added go.mod declaration which makes ws to be a Go module
  • Moved from Travis CI to GitHub Actions
  • Update a dependencies for Autobahn tests