good morning!!!!

Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/nhooyr/websocket. Pull mirroring updated .
  1. Mar 14, 2025
  2. Jan 30, 2025
    • Iñigo Garcia Olaizola's avatar
    • 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
  3. Jan 29, 2025
  4. Dec 04, 2024
  5. Nov 07, 2024
  6. Sep 19, 2024
  7. Sep 12, 2024
  8. Sep 09, 2024
  9. Aug 22, 2024
  10. Aug 21, 2024
  11. Aug 15, 2024
  12. Aug 09, 2024
  13. Apr 12, 2024
  14. Apr 11, 2024
Loading