Refactor code, placed all code that must run after redis is ready in a single function (code inside io.socket.on(connection)), add favicon