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
-
- 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
-
- Oct 15, 2023
-
-
Anmol Sethi authored
Closes #333
-
- Oct 13, 2023
-
-
Andy Bursavich authored
Unacceptable offers are declined without rejecting the request.
-
Andy Bursavich authored
-
Anmol Sethi authored
Closes #341
-
Martin Benda authored
-
Anmol Sethi authored
-
- Oct 10, 2023
-
-
Anmol Sethi authored
Also ran gofmt on everything. Thanks again @paralin. #334 Co-authored-by:
Christian Stewart <christian@paral.in>
-
- Mar 07, 2023
-
-
Gus Eggert authored
Co-authored-by:
Anmol Sethi <hi@nhooyr.io>
-
- Feb 25, 2023
-
-
Teddy Okello authored
-
- Jan 30, 2023
-
-
Gus Eggert authored
When the ctx is nil, http.NewRequestWithContext returns a "net/http: nil Context" error and a nil request. In this case, the dial function panics because it assumes the req is never nil. This checks the returning error and returns it, so that callers get an error instead of a panic in that scenario.
-
- Jan 09, 2021
-
-
Anmol Sethi authored
Thank you @icholy for identifying these in https://github.com/nhooyr/websocket/pull/259#issuecomment-702279421
-
- Dec 23, 2020
-
-
Egor Gorbunov authored
HTTP header values, as opposed to header keys, are case sensitive, but implementation of headerTokens() before this patch would return lowered values always. This old behavior could lead to chromium (v87) WebSocket rejecting connnection because negotiated subprotocol, returned in Sec-WebSocket-Protocol header (lowered be headerToken() function) would not match one sent by client, in case client specified value with capital letters.
-
- Sep 25, 2020
-
-
swithek authored
-
- Sep 24, 2020
-
-
swithek authored
-
Andy Bursavich authored
See: https://staticcheck.io/docs/checks#SA4001
-
- Sep 22, 2020
-
-
swithek authored
-
- May 18, 2020
-
-
Anmol Sethi authored
Closes #220 and #230
-
- Apr 14, 2020
-
-
Anmol Sethi authored
-
Anmol Sethi authored
-
- Feb 18, 2020
-
-
Anmol Sethi authored
Much simpler config. Github Actions just isn't there yet.
-
- Feb 16, 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
Closes #182
-
Anmol Sethi authored
-
Anmol Sethi authored
-
Anmol Sethi authored
-
- Nov 29, 2019
-
-
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
-
- Sep 22, 2019
-
-
Anmol Sethi authored
Removes the tiny filenames polluting the root directory.
-
- Sep 21, 2019
-
-
Anmol Sethi authored
Closes #121
-