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
      Unverified
      703784f0
  2. Dec 04, 2024
  3. Aug 15, 2024
  4. Aug 09, 2024
  5. Apr 07, 2024
  6. Apr 05, 2024
  7. Oct 19, 2023
  8. Oct 14, 2023
  9. Oct 13, 2023
  10. Oct 10, 2023
  11. Feb 25, 2023
  12. Jan 09, 2021
  13. May 18, 2020
  14. May 10, 2020
  15. Apr 15, 2020
  16. Apr 14, 2020
  17. Mar 22, 2020
  18. Feb 27, 2020
  19. Feb 26, 2020
  20. Feb 18, 2020
  21. Feb 17, 2020
Loading