spumko/hapi — pull request #1123 by jeffbski (2013-10-31 13:34:36+00:00)
Title: add ability to listen on unix domain socket

Provide ability to listen on a unix domain socket rather than TCP if the server option `unixDomainSocket` is passed with a path.

If a unix domain socket is used, `server.info.unixDomainSocket` will contain the absolute path to the socket the server is listening to.

Example:

```javascript
var server = new Hapi.Server({ unixDomainSocket: '/pathto.socket' });
server.start(function () {
console.log(server.info.unixDomainSocket); // /absPathto.socket
});
```

I have updated the docs, provided failing tests, and an implementation.