ping.rb 362 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Sessions::Event::Ping < Sessions::Event::Base
  3. =begin
  4. Event module to send pong to client connection.
  5. To execute this manually, just paste the following into the browser console
  6. App.WebSocket.send({event:'ping'})
  7. =end
  8. def run
  9. {
  10. event: 'pong',
  11. }
  12. end
  13. end