complete networking, using web socket, and polling method when timeout 30s. I will submit this as the final project code