MCPcopy Index your code
hub / github.com/ether/etherpad / getActivePadCountFromSessionInfos

Function getActivePadCountFromSessionInfos

src/node/handler/PadMessageHandler.ts:111–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109exports.getTotalActiveUsers = getTotalActiveUsers;
110
111function getActivePadCountFromSessionInfos() {
112 const padIds = new Set();
113 for (const {padId} of Object.values(sessioninfos)) {
114 if (!padId) continue;
115 padIds.add(padId);
116 }
117 return padIds.size;
118}
119exports.getActivePadCountFromSessionInfos = getActivePadCountFromSessionInfos;
120
121// Per-pad user counts derived on demand from sessioninfos. Used by

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected