lstn
lstn
makes it more straightforward to listen on unix sockets by deleting old sockets when present and setting the mode of the created socket file.
Usage
lstn(server, socket[, mode][, callback]);
// Instead ofserver;// do it like thisvar lstn = ;
When you use port
and hostname
arguments instead, they just get passed through.