Method: Blur::Client::Handling#got_ping

Defined in:
library/blur/handling.rb

#got_ping(network, message) ⇒ Object

Called when the server needs to verify that we’re alive.



82
83
84
85
86
87
# File 'library/blur/handling.rb', line 82

def got_ping network, message
  network.last_pong_time = Time.now
  network.transmit :PONG, message.parameters[0]

  emit :network_ping, network, message.parameters[0]
end