waiting for socket.io load