check env.XHR for socketio setting