Check for readyState of websocket