Clustering
For more information see Clustered Usage. Since node-nats >0.7.18
the Discovered Servers Api is supported. It allows the client to discover new servers without to restart.
const servers = [
'nats://nats.io:4222',
'nats://nats.io:5222',
'nats://nats.io:6222'
]
const nc = nats.connect({ servers: servers })
new Hemera(nc)