Added
- Added
NATS.connect
module method that returns a NATS::IO::Client
# Returns a new NATS::IO::Client.new instance
nc = NATS.connect("nats://demo.nats.io:4222")
nc = NATS.connect(servers: ["nats://demo.nats.io:4222"])
- Added logic to prevent multiple uses of
connect
when using the same client instance across different threads.
nc = NATS::IO::Client.new
nc.connect("nats://demo.nats.io:4222")
nc.connect("nats://demo.nats.io:4222") # Will not reattempt to connect if already called once.
Fixed
- Fixed
old_request
handling of NATS +v2.2 servers when there are no responders