you're right, i was wrong, there is no core `socket` module (anymore?). but you were not right either.
node core can only tell if a file is a socket, but not read from it, at least that's what the docs say.
for people interested in this: https://github.com/santigimeno/node-unix-stream