This example is actually wrong. You should just use `new` instead of 
`newSocket`, this is described in the docs for `accept`/`acceptAddr` 
([https://nim-lang.org/docs/net.html#acceptAddr,Socket,Socket,string)](https://nim-lang.org/docs/net.html#acceptAddr,Socket,Socket,string\)).

Edit: I created an issue to fix this gotcha btw: 
[https://github.com/nim-lang/Nim/issues/7227](https://github.com/nim-lang/Nim/issues/7227)

Reply via email to