Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyqs authored Oct 27, 2021
1 parent c25c30d commit 2a271e6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ A thread safe [Ruby](http://ruby-lang.org) client for the [NATS messaging system
gem install nats-pure
```

Starting from [v0.6.0](/~https://github.com/nats-io/nats-pure.rb/releases/tag/v0.6.0) release,
you can also optionally install [NKEYS](/~https://github.com/nats-io/nkeys.rb) in order to use
the new NATS v2.0 auth features:

```bash
gem install nkeys
```

## Basic Usage

```ruby
Expand Down Expand Up @@ -164,6 +156,14 @@ NATS.connect({

This requires server with version >= 2.0.0

Starting from [v0.6.0](/~https://github.com/nats-io/nats-pure.rb/releases/tag/v0.6.0) release,
you can also optionally install [NKEYS](/~https://github.com/nats-io/nkeys.rb) in order to use
the new NATS v2.0 auth features:

```bash
gem install nkeys
```

NATS servers have a new security and authentication mechanism to authenticate with user credentials and NKEYS. A single file containing the JWT and NKEYS to authenticate against a NATS v2 server can be set with the `user_credentials` option:

```ruby
Expand Down

0 comments on commit 2a271e6

Please sign in to comment.