nats-io / nats.ts

TypeScript Node.js client for NATS, the cloud native messaging system
https://www.nats.io
Apache License 2.0
178 stars 13 forks source link

Normalize `reconnectTimeWait` and `maxReconnectAttempts` #72

Closed aricart closed 4 years ago

aricart commented 4 years ago

Current behavior is to wait reconnectTimeWait for any reconnect. It should be on a per-server basis based on the last connect time. Similarly, maxReconnectAttempts is not per-server but an actual count of retries.