Skip to content

Tags: gobwas/ws

Tags

v1.4.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Extract Autobahn test suite to a separate CI step (#199)

v1.3.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add Dialer.Host field (#196)

v1.3.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Remove common wsutil.Reader allocations (#189)

![image](https://github.com/gobwas/ws/assets/5663952/b7f5a544-f6f0-44cf-b38c-e89fd3de0bd4)

* `ws.ReadHeader` allocates a 12 byte temporary buffer to read the header into. Since `io.ReadFull` is used, it escapes to the heap.

* `wsutil.NewCipherReader` is used for many calls.

Since the `NextFrame` shouldn't have concurrent calls, both of these should be possible to have internally.

I am forced to copy "readHeader" from `ws`, since there is not way to eliminate the alloc otherwise as far as I can tell.

v1.3.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Hijack connection through `http.ResponseController` in http upgrader (#…

…181)

v1.2.1

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
ws: bring back support for go1.16

Running `go1.16 build .` failed with:

    //go:build comment without // +build comment

v1.2.0

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
dialer: move negotiated extension and copy extension parameters

Fixes following issue:
Extensions in Handshake returned from (Dialer) Upgrade contain slices
pointing to memory in buffer already returned to pbufio.ReaderPool.

v1.1.0

readme: improve compression example

v1.1.0-rc.6

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
wsflate: avoid double buffering when using flate.Reader (#137)

This commit makes wsflate.suffixedReader to optionally implement
io.ByteReader. That is, if source object is buffered (bytes.Reader,
bufio.Reader etc.) and implements io.ByteReader, but suffixedReader not,
then flate.NewReader() will allocate new bufio.Reader for it. This
commit fixes it and adds runtime checks on suffixedReader source to hide
ReadByte() method if source is a pure io.Reader.

Fixes #130

v1.1.0-rc.5

spell fix

v1.1.0-rc.4

wsflate: IsCompressed() shortcut