Skip to content

Release v0.11.0

Latest
Compare
Choose a tag to compare
@wallyqs wallyqs released this 11 Jun 00:56
· 32 commits to master since this release
f91c4d6

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 to nats-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")