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
-
- Sep 12, 2024
-
-
Mathias Fredriksson authored
Contributes to #474
-
- Aug 22, 2024
-
-
Mathias Fredriksson authored
Since we rely on the connection not being hijacked too early (i.e. detecting the presence of http.Hijacker) to set headers, we must manually implement the unwrapping of the http.ResponseController. By doing so, we also retain Go 1.19 compatibility without build tags. Closes #455
-
- Aug 21, 2024
-
-
Kian Yang Lee authored
OS-specific behaviour is not necessary. This PR replaces filepath.Match with path.Match and also updated the documentation to reflect that. Closes #451
-
- 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 19, 2023
-
-
Steven Masley authored
-
Steven Masley authored
-
Steven Masley authored
-
Steven Masley authored
Client "Sec-WebSocket-Key" should be a valid 16 byte base64 encoded nonce. If the header is not valid, the server should reject the client.
-
Anmol Sethi authored
-
- Oct 13, 2023
-
-
Andy Bursavich authored
Unacceptable offers are declined without rejecting the request.
-
Andy Bursavich authored
-
Anmol Sethi 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>
-
- Jan 09, 2021
-
-
Anmol Sethi authored
Closes #247
-
- 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 24, 2020
-
-
Andy Bursavich authored
See: https://staticcheck.io/docs/checks#SA4001
-
- May 18, 2020
-
-
Anmol Sethi authored
Closes #220 and #230
-
- May 10, 2020
-
-
Anmol Sethi authored
Closes #166
-
Anmol Sethi authored
Closes #235
-
- Apr 15, 2020
-
-
Anmol Sethi authored
It's more clear than * as an origin pattern.
-
- Apr 14, 2020
-
-
Anmol Sethi authored
-
Anmol Sethi authored
Closes #218
-
Anmol Sethi authored
-
Anmol Sethi authored
-
- Feb 27, 2020
-
-
Anmol Sethi authored
-
Anmol Sethi authored
Closes #199
-
- Feb 26, 2020
-
-
Anmol Sethi authored
Closes #194
-
- Feb 16, 2020
-
-
Anmol Sethi authored
Closes #189
-
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
-