Fallbacks to XHR if websockets are not supported and added the inspect client method