Release with support for NATS v2 auth features
Added
- Support for user credentials that contain a JWT/NKEY to auth against NATS v2 servers
require 'nats/client'
NATS.start("tls://connect.ngs.global", user_credentials: "/path/to/creds") do |nc|
nc.subscribe("hello") do |msg|
puts "[Received] #{msg}"
end
nc.publish('hello', 'world')
end
- Support to authenticate against NATS v2 servers that use NKEYS
require 'nats/client'
NATS.start("tls://connect.ngs.global", nkeys_seed: "path/to/seed.txt") do |nc|
nc.subscribe("hello") do |msg|
puts "[Received] #{msg}"
end
nc.publish('hello', 'world')
end
- Added
--creds
option tonats-pub
,nats-sub
,nats-queue
tools
Changed
- Internal changes to process initial INFO message from the server
Fixed
-
Fixed being able to use 'tls' as the scheme when connecting with a single URL
NATS.connect("tls://demo.nats.io:4443")