good morning!!!!

Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/nhooyr/websocket. Pull mirroring updated .
  1. Jan 30, 2025
    • Iñigo Garcia Olaizola's avatar
      feat: add ping and pong received callbacks (#509) · 703784f0
      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
      703784f0
  2. Sep 12, 2024
  3. Aug 22, 2024
  4. Aug 21, 2024
  5. Aug 09, 2024
  6. Oct 19, 2023
  7. Oct 13, 2023
  8. Oct 10, 2023
  9. Jan 09, 2021
  10. Dec 23, 2020
    • Egor Gorbunov's avatar
      Do not lower header tokens in headerTokens() (#273) · e4c3b0f8
      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.
      e4c3b0f8
  11. Sep 24, 2020
  12. May 18, 2020
  13. May 10, 2020
  14. Apr 15, 2020
  15. Apr 14, 2020
  16. Feb 27, 2020
  17. Feb 26, 2020
  18. Feb 16, 2020
  19. Feb 09, 2020
Loading