github gobwas/ws v1.1.0

latest releases: v1.4.0, v1.3.2, v1.3.1...
2 years ago

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

Don't miss a new ws release

NewReleases is sending notifications on new releases.