github nats-io/nats.go v1.6.0
Release v1.6.0

latest releases: v1.35.0, v1.34.1, v1.34.0...
5 years ago

Changelog

Added

  • PingInterval() option. Thanks to @karpovicham for the contribution (#361)
  • Ability to suppress receiving messages published by own connection, aka NoEcho() option. Requires server 1.2.0+ (#375)
  • Ability to drain subscriptions and/or connections (#378, #380)

Improved

  • Simpler URLs. It is now possible to simply pass hostname without scheme nor port (which defaults to 4222). That is, nats.Connect("myhost") is now equivalent to nats.Connect("nats://myhost:4222"). Also switches automatically to secure connection (TLS) if server requests it (#381)

Fixed

  • Possible deadlock in asynchronous connection callbacks. Thanks to @teh-cmc for the contribution (#365, #369)
  • Close() may not release resources immediately. Thanks to @mjgarton for the report (#370)
  • Benchmark tool (nats-bench) now starts subscriber's timer when getting the first message (#379)
  • API Documentation related to creation of various subscription types. Thanks to @nussjustin for the report (#383)
  • Panic if passing a nil option to nats.Connect(). They will now be ignored (#385)
  • RequestWithContext or NextMsgWithContext could return a message although the context was canceled or timed-out (#387)

Complete Changes

nats-io/go-nats@v1.5.0...v1.6.0

Don't miss a new nats.go release

NewReleases is sending notifications on new releases.