Method: NATS#schedule_reconnect

Defined in:
lib/nats/client.rb

#schedule_reconnectObject

:nodoc:


1133
1134
1135
1136
1137
# File 'lib/nats/client.rb', line 1133

def schedule_reconnect #:nodoc:
  @reconnecting = true
  @connected = false
  @reconnect_timer = EM.add_timer(@options[:reconnect_time_wait]) { attempt_reconnect }
end