npm nats 1.4.2
v1.4.2

latest releases: 2.23.0, 2.22.0, 2.21.0...
4 years ago
  • New option #309 added the timeout connection option, which allows the client to specify how long to wait from the initial TCP dial to the first PONG from the server. If the first PONG is not received within the specified time, the connection fails.
  • FIX #319 and #318 - Reworked reconnectTimeWait and maxReconnects to match other clients. maxReconnect is now per server, and reconnectTimeWait is based on server last connection.
  • FIX #321 on reconnect any unsubscribe requests are resent to the server.
  • FIX #323 - cleaned up pending buffer on disconnect. If the client disconnects from a connected session, pending messages are discarded as the buffer could contain partials. Also any pending flush callbacks will be called with a DISCONNECT error. After resetting the pending buffer, the client can subscribe and queue new messages, which will be delivered on the next reconnect. Intermediate failed dials do not reset the pending buffer or fail flush callbacks.
  • FIX #326 fixed subscription ids to start at 1
  • Fixed an issue where if the client emitted an errror (when it failed to connect to a server), the TCP stream would be closed, but the client was not closed preventing the application from terminating.
  • updated dependencies

Don't miss a new nats release

NewReleases is sending notifications on new releases.