Check if a websocket has been opened successfully. If not, fallback to other transport. Issue #997