Wake uses socket.io for communication.
The db.js file is splitted up in multiple js files (config.js, db.js, index.js, wol.js) for cleaner code structure.