module DDP::Server::Protocol::Heartbeat

Protocol regarding heartbeat messages

Public Instance Methods

handle_heartbeat() click to toggle source
# File lib/ddp/server/protocol/heartbeat.rb, line 6
def handle_heartbeat
        case @message['msg']
        when 'ping'
                write_message msg: 'pong', id: @message['id']
                true
        when 'pong'
                true
        else
                false
        end
end