1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Update nkey.md

This commit is contained in:
Ginger Collison 2019-10-04 15:07:15 -05:00 committed by GitHub
parent 050a5abd6c
commit d577d776a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,24 +90,6 @@ await nc.close()
```
{% endtab %}
{% tab title="Ruby" %}
```ruby
require 'nats/client'
NATS.start(max_outstanding_pings: 5) do |nc|
nc.on_reconnect do
puts "Got reconnected to #{nc.connected_server}"
end
nc.on_disconnect do |reason|
puts "Got disconnected! #{reason}"
end
# Do something with the connection
end
```
{% endtab %}
{% tab title="TypeScript" %}
```typescript
// seed should be stored in a file and treated like a secret