An example node app that shows how to wrap socket.io in TLS and use setuid to de-escalate privileges.