trabajo-afectivo/lib/sessions/event/ping.rb

22 lines
361 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
2015-12-09 13:09:37 +00:00
class Sessions::Event::Ping < Sessions::Event::Base
=begin
Event module to send pong to client connection.
To execute this manually, just paste the following into the browser console
App.WebSocket.send({event:'ping'})
=end
2015-12-09 13:09:37 +00:00
def run
{
event: 'pong',
}
end
end