private _releaseClientSubscriptions(client: IConnectedClient, record: IActiveClientRecord): void {
for (const sub of client.subscriptions.values()) {
if (this._hasSubscriptionInOtherConnection(record, client, sub.uri)) {
continue;
}
this._agentService.unsubscribe(URI.parse(sub.uri), client.clientId);
this._agentService.onResourceWatchUnsubscribed(sub.uri);
}
client.subscriptions.clear();
}