How does the client know how many connections exist at a given time?
A client can determine the number of connections to all of their organization’s streams by using the GetStreams call or isolating to just one stream by using the GetStreams By ID call. In both of those calls a count of ‘members’ will be returned. The member count is the number of connections to that stream at the time the call was made. If there are 0 members/connections then you are not ingesting data from the stream at that time.
Remember when testing that putting a mainstream URL in a browser tab will count as a connection and will engage load balancing. Placing mainstream URLs in browser tabs is not recommended