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>
-
- Aug 09, 2024
-
-
Ammar Bandukwala authored
This will create easily solved breakage on updates but I figure it's best to pull the band aid off as early as possible
-
- 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
-
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 26, 2023
-
-
Anmol Sethi authored
-
- Oct 19, 2023
-
-
Anmol Sethi authored
Closes #330
-
Anmol Sethi authored
Closes #330
-
Anmol Sethi authored
-
Anmol Sethi authored
Closes #298 Closes #394 The close frame was being received from the peer before we were able to reset our write timeout and so we thought the write kept failing but it never was... Thanks @univerio and @bhallionOhbibi
-
Anmol Sethi authored
Updates e9d08816
-
- Oct 13, 2023
-
-
Anmol Sethi authored
-
- Oct 10, 2023
-
-
arthmis authored
Co-authored-by:
lazypassion <25536767+lazypassion@users.noreply.github.com>
-
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>
-
- Feb 25, 2023
-
-
Teddy Okello authored
-
- Apr 10, 2021
-
-
arthmis authored
Co-authored-by:
lazypassion <25536767+lazypassion@users.noreply.github.com>
-
- Apr 07, 2021
-
-
Anmol Sethi authored
A double channel close panic was possible if a peer sent back multiple pongs for every ping. If the second pong arrived before the ping goroutine deleted its channel from the map, the channel would be closed twice and so a panic would ensue. This fixes that by having the read goroutine send on the ping goroutine's channel rather than closing it. Reported via email by Tibor Kálmán @kalmant Please update to the new release ASAP!
-
- Jan 09, 2021
-
-
Anmol Sethi authored
Closes #245
-
Anmol Sethi authored
Closes #87
-
- Apr 14, 2020
-
-
Anmol Sethi authored
Closes #208
-
- Feb 20, 2020
-
-
Anmol Sethi authored
Closes #191
-
- Feb 18, 2020
-
-
Anmol Sethi authored
Much simpler config. Github Actions just isn't there yet.
-
- Feb 16, 2020
-
-
Anmol Sethi authored
- Feb 13, 2020
-
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
- Feb 12, 2020
-
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
- Feb 09, 2020
-
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
Closes #182
-