Hello,
Does anyone know the purpose of the “controlledIDs” in the awarenessChangeHandler? How is it used?
y-websocket/utils.js at 5db415ab9b584dc1cd9a362e70fb8e976f21d6cd · yjs/y-websocket · GitHub
const awarenessChangeHandler = ({ added, updated, removed }, conn) => {
const changedClients = added.concat(updated, removed)
if (conn !== null) {
const connControlledIDs = /** @type {Set<number>} */ (this.conns.get(conn))
if (connControlledIDs !== undefined) {
added.forEach(clientID => { connControlledIDs.add(clientID) })
removed.forEach(clientID => { connControlledIDs.delete(clientID) })
}
}
thanks