Releases: gobwas/ws
Releases · gobwas/ws
v1.1.0-rc.3
Simplificaton of the wsutil extension interfaces.
v1.1.0-rc.2
wsutil.Reader.MaxFrameSize field
v1.1.0-rc.1
Compression support
v1.0.4
Fixes for Go 1.14.
This release contains fixes of #99
v1.0.2
v1.0.1
v1.0.0
Breaking changes:
-
HTTPUpgrader:
UpgradeHTTP()
andHTTPUpgrader.Upgrade()
accepts now onlyhttp.ResponseWriter
and*http.Request
withouthttp.Header
option. To add custom headers per upgrade use separate instances ofHTTPUpgrader
withHeader
field set to custom headers. -
Upgrader:
Upgrader.Header
field now not a callback, butHandshakeHeader
interface. See the docs for more info.Upgrader.OnRequest
,Upgrader.OnHost
,Upgrader.OnHeader
andUpgrader.OnBeforeUpgrade
are now return only error, without rejection code. To use rejection code use anRejectConnectionError
. See the docs for more info.
-
wsutil.ClosedError:
Code
andReason
methods are now exported fields of a struct. -
wsutil.ControlHandler: no more callbacks, all logic moved to the same called struct.
Features
- Add
MustWriteFrame()
andMustReadFrame()
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.