2015-12-09 13:09:37 +00:00
|
|
|
class Sessions::Event::Ping < Sessions::Event::Base
|
|
|
|
|
2018-11-02 17:42:57 +00:00
|
|
|
=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
|