Skip to content

Releases: gobwas/ws

v1.1.0-rc.3

05 Feb 13:58
Compare
Choose a tag to compare
v1.1.0-rc.3 Pre-release
Pre-release

Simplificaton of the wsutil extension interfaces.

v1.1.0-rc.2

25 Jan 20:36
Compare
Choose a tag to compare
v1.1.0-rc.2 Pre-release
Pre-release

wsutil.Reader.MaxFrameSize field

v1.1.0-rc.1

08 Dec 13:32
Compare
Choose a tag to compare
v1.1.0-rc.1 Pre-release
Pre-release

Compression support

v1.0.4

07 Sep 07:31
Compare
Choose a tag to compare

This releases contains fix for big-enginan machines (#114).

Fixes for Go 1.14.

03 Mar 08:39
d1714d5
Compare
Choose a tag to compare

This release contains fixes of #99

v1.0.2

14 Jun 18:29
Compare
Choose a tag to compare

This release contains a patch that removes unsafe usage from many places. This is done to bring more stable and compatible behavior on other than Linux operating systems.

v1.0.1

19 May 15:17
Compare
Choose a tag to compare

This release contains patch that makes ws.Dial() and other client functions send headers in spec compliant capitalization (Sec-Websocket-* to Sec-WebSocket-*). See #71.

v1.0.0

05 Aug 17:57
Compare
Choose a tag to compare

Breaking changes:

  • HTTPUpgrader: UpgradeHTTP() and HTTPUpgrader.Upgrade() accepts now only http.ResponseWriter and *http.Request without http.Header option. To add custom headers per upgrade use separate instances of HTTPUpgrader with Header field set to custom headers.

  • Upgrader:

    • Upgrader.Header field now not a callback, but HandshakeHeader interface. See the docs for more info.
    • Upgrader.OnRequest, Upgrader.OnHost, Upgrader.OnHeader and Upgrader.OnBeforeUpgrade are now return only error, without rejection code. To use rejection code use an RejectConnectionError. See the docs for more info.
  • wsutil.ClosedError: Code and Reason methods are now exported fields of a struct.

  • wsutil.ControlHandler: no more callbacks, all logic moved to the same called struct.

Features

  • Add MustWriteFrame() and MustReadFrame() helper functions.
  • Add State helper methods: s.ClientSide(), s.ServerSide() and others.

Bugfixes

  • wsutil.ControlHandler: now deals well with masked application data.
  • wsutil.ReadMessage (and brothers): deals well with io.ReadAll at fragmented messages.
  • wsutil.Reader: works well with io.ReadAll when body has invalid utf8 sequence.

Improvements

  • Running autobahn testsuite on every travis ci builds.
  • More unit tests.

v0.1.0

27 May 19:52
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

This release holds freezed version of ws API before breaking changes in upcoming releases.