@eschmidbauer commented on this pull request.
it looks like this code will connect to NATS server each publish request. I think it would be better to handle the connections outside of the `nats_publish_f` function to avoid having to connect each request.