This project is mirrored from https://github.com/nhooyr/websocket.
Pull mirroring updated .
- Jan 30, 2025
-
-
Iñigo Garcia Olaizola authored
This change adds two optional callbacks to both `DialOptions` and `AcceptOptions`. These callbacks are invoked synchronously when a ping or pong frame is received, allowing advanced users to log or inspect payloads for metrics or debugging. If the callback needs to perform more complex work or reuse the payload outside the callback, it is recommended to perform processing in a separate goroutine. The boolean return value of `OnPingReceived` is used to determine if the subsequent pong frame should be sent. If `false` is returned, the pong frame is not sent. Fixes #246
-
- Dec 04, 2024
-
-
Moritz authored
Co-authored-by:
Mathias Fredriksson <mafredri@gmail.com>
-
- Apr 11, 2024
-
-
Jacob authored
-
- Apr 09, 2024
-
-
Jacob authored
This is a cleaner solution for the fix in #438 thanks to the fact that Go 1.19 now is the default and the atomic.Int64 types are automatically aligned correctly on 32 bit systems. Using this also means that xsync.Int64 can be removed. The new atomic.Int64 type solves the issue and should be quite a lot faster as it avoids the interface conversion.
-
- Apr 07, 2024
-
-
Anmol Sethi authored
Context can be cancelled by parent. Doesn't indicate the CloseRead goroutine has exited.
-
Anmol Sethi authored
-
- Apr 05, 2024
-
-
Anmol Sethi authored
Far simpler now. Sorry this took a while. Closes #427 Closes #429 Closes #434 Closes #436 Closes #437
-
- Oct 20, 2023
-
-
Anmol Sethi authored
Whoops.
-
- Oct 19, 2023
-
-
Anmol Sethi authored
Closes #330
-
Anmol Sethi authored
Closes #330
-
Anmol Sethi authored
Closes #330
-
Anmol Sethi authored
-
Anmol Sethi authored
Updates e9d08816
-
- Oct 14, 2023
-
-
Anmol Sethi authored
Closes #384
-
Anmol Sethi authored
Closes #354
-
- Oct 13, 2023
-
-
Anmol Sethi authored
-
Anmol Sethi authored
Closes #349
-
- Oct 10, 2023
-
-
Anmol Sethi authored
Cherry picked from master at 129d3035
-
Anmol Sethi authored
Also ran gofmt on everything. Thanks again @paralin. #334 Co-authored-by:
Christian Stewart <christian@paral.in>
-
- Jan 09, 2021
-
-
Anmol Sethi authored
Closes #242
-
- May 18, 2020
-
-
Anmol Sethi authored
NetConn has to close the connection to interrupt in progress reads and writes. However, it can block reads and writes that occur after the deadline instead of closing the connection. Closes #228
-
Anmol Sethi authored
This way we don't pollute the directory tree.
-
- Feb 12, 2020
-
-
Anmol Sethi authored
-
- Feb 09, 2020
-
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
Closes #182
-
Anmol Sethi authored
-
- Dec 31, 2019
-
-
Anmol Sethi authored
-
- Dec 19, 2019
-
-
Anmol Sethi authored
Closes #179
-
- Nov 29, 2019
-
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
Too many improvements and changes to list. Will include a detailed changelog for release.
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
- Nov 06, 2019
-
-
Anmol Sethi authored
-
Anmol Sethi authored
See https://github.com/golang/go/issues/31586#issuecomment-550040882 Thanks @renthraysk benchmark old MB/s new MB/s speedup BenchmarkXOR/2/fast-8 470.88 492.61 1.05x BenchmarkXOR/3/fast-8 602.24 719.25 1.19x BenchmarkXOR/4/fast-8 718.82 1186.64 1.65x BenchmarkXOR/8/fast-8 1027.60 1718.71 1.67x BenchmarkXOR/16/fast-8 1413.31 3430.46 2.43x BenchmarkXOR/32/fast-8 2701.81 5585.42 2.07x BenchmarkXOR/128/fast-8 7757.97 13432.37 1.73x BenchmarkXOR/512/fast-8 15155.03 18797.79 1.24x BenchmarkXOR/4096/fast-8 20689.95 20334.61 0.98x BenchmarkXOR/16384/fast-8 21687.87 21613.94 1.00x Now its faster than basic XOR at every byte size greater than 2 on little endian amd64 machines.
-