It's one of the projects I never documented https://xmonader.github.io/nimdays/day17_nimsonicclient.html
there's a space for improvement including utilizing a connection pool (I've already implemented that in python) if any takers. please feel free to open issues or PRs.