Remove reliance on HTTP for socket io connection to server