NATS v1.6.0 Release Notes
Release Date: 2018-08-29 // over 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
- 0๏ธโฃ 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 tonats.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