Releases: nats-io/nats-pure.rb
Releases · nats-io/nats-pure.rb
Release v0.6.2
Release v0.6.0
Release with support for NATS v2 auth features
Added
- Support for user credentials that contain a JWT/NKEY to auth against NATS v2 servers
nats.connect(servers: ['tls://connect.ngs.global:4222'],
user_credentials: "path/to/user.creds")
- Support to authenticate against NATS v2 servers that use NKEYS
nats.connect(servers: ['tls://connect.ngs.global:4222'],
nkeys_seed: "path/to/user.nk")
- Adds simpler connect API that takes a single URL
# Only specifying endpoint uses NATS default scheme and port.
nats.connect("demo.nats.io")
# Setting custom server URI to connect.
nats.connect("nats://localhost:4222")
# Setting username and password to authenticate.
nats.connect("nats://user:password@localhost:4222")
# Using comma separated array to define list of servers.
nats.connect("nats://localhost:4223,nats://localhost:4224")
# Setting reconnect to false (options as the second argument)
nats.connect("demo.nats.io:4222", reconnect: false)
# Setting 'tls' as the scheme to use secure connection with defaults
nats.connect("tls://demo.nats.io:4443")
Release v0.5.0
Added
-
New style request/response implementation which requires less traffic over the network (#30)
-
New options for connect to use classic request/response style using auto unsubscribe
nc.connect(servers: ["nats://demo.nats.io:4222"], old_style_request: true)
Improved
- Nothing
Fixed
- Nothing
Changed
- Inbox generation now done via
NUID
approach (#31)
Deprecated
- Nothing
Release v0.4.0
Added
- Subscriptions now raise slow consumer exceptions when hitting limits that can be customized via
:pending_msgs_limit
and:pending_bytes_limit
options that can be passed onsubscribe
.
nats.subscribe("hi", pending_msgs_limit: 100, pending_bytes_limit: 1024) do |payload|
# ...
end
Fixed
- Multiple async subscribers head of line blocking issue fixed (#27)
Changed
- Subscribers with callbacks now each have their own thread for dispatching messages following similar behavior as with the Go client (#27)
Removed
None
Deprecated
None
Release v0.3.0
v0.2.4
v0.2.2
v0.2.0
- Fix last error shadowing on connection failures (originally reported at wallyqs/pure-ruby-nats#5 )
- Fixes to follow more closely behavior from the Go client on connect failures
- Add customizable
:connect_timeout
- Add read timeouts for read line during
CONNECTING
andRECONNECTING
stages - Add
SocketTimeoutError
to represent i/o timeout errors with socket
v0.1.2
First release
A thread safe Ruby client for the NATS Messaging System.