The sockets module is deprecated so that suggests that the example you are trying to compile needs to be updated. In general I think all the examples that are bundled with Nim need to be cleaned up, see the documentation for the asynchttpserver for a more up to date example of a HTTP server.
- Cannot compile httpserver2.nim didlybom
- Re: Cannot compile httpserver2.nim dom96