Hooks up socket.io back-end.