Updated PR to connect to urls while parsing the given "nats_url" modparams. Also the new function now supports either 1, 2 or 3 params; url and subject are now optional; it will publish to all urls and all subject queues if none given.
Basically tested it with 3 local nats servers. And calling the new config function either with 1 param or 3 params.
Let me know what you think of this.
Thank you, Stefan