1. Let result be an empty .
    2. If selector is null, gather stats for the whole connection, add them to result, return result, and abort these steps.