ping.rb 285 B

12345678910111213141516171819
  1. class Sessions::Event::Ping < Sessions::Event::Base
  2. =begin
  3. Event module to send pong to client connection.
  4. To execute this manually, just paste the following into the browser console
  5. App.WebSocket.send({event:'ping'})
  6. =end
  7. def run
  8. {
  9. event: 'pong',
  10. }
  11. end
  12. end