check readyState
reconnect to server