class Meshchat::Network::Message::Ping
Public Instance Methods
display()
click to toggle source
# File lib/meshchat/network/message/ping.rb, line 6 def display # we'll never display our own ping to someone else... # or shouldn't.... or there should be different output # TODO: display is a bad method name name = payload['sender']['alias'] location = payload['sender']['location'] "#{name}@#{location} pinged you." end
handle()
click to toggle source
# File lib/meshchat/network/message/ping.rb, line 16 def handle respond display end
respond()
click to toggle source
# File lib/meshchat/network/message/ping.rb, line 21 def respond reply = _message_factory.create(PING_REPLY) _message_dispatcher.send_message( uid: payload['sender']['uid'], message: reply ) end