Ah yes that was the cause of the problem. I reported the bug here : [https://github.com/nim-lang/nim-zmq/issues/14](https://github.com/nim-lang/nim-zmq/issues/14)
I have a fork of nim-zmq where I added some examples, I can fix the problem and submit a Pull Request.