Putting socket.io loading check