Method: NATS#bind_primary

Defined in:
lib/nats/client.rb

#bind_primaryObject

:nodoc:

[View source]

1341
1342
1343
1344
1345
1346
1347
# File 'lib/nats/client.rb', line 1341

def bind_primary #:nodoc:
  first = server_pool.first
  @uri = first[:uri]
  @uri.user = options[:user] if options[:user]
  @uri.password = options[:pass] if options[:pass]
  first
end