Node.JS: Reusing sockets?

I tries to execute this script:

require('net').createServer().listen('/tmp/test');

First time script runs successfully, but on the second start node.js throwing error: Error: listen EADDRINUSE

Is there any way to reuse sockets (unix and tcp too)?

Apparently your script/listener/server from the first call is still running. You have to kill the script/process that is listening in order to use the same port again.

huh?

Node is already listening to 'tmp/test' , how would it listen to it again?

Like you cannot allow two applications to listen on ONE PORT, so is with SOCKET. One should only be allowed by one.