check websocket readystate