Method: NATS#send_ping

Defined in:
lib/nats/client.rb

#send_pingObject

:nodoc:


1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
# File 'lib/nats/client.rb', line 1105

def send_ping #:nodoc:
  return if @closing
  @pings_outstanding += 1
  if @pings_outstanding > @options[:max_outstanding_pings]
    close_connection
    #close
    return
  end
  queue_server_rt { process_pong }
  flush_pending
end