1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 1x 4x 3x 1x 1x | import { ClientProxy } from './client/client-proxy'; import { Closeable } from './interfaces/closeable.interface'; export type CloseableClient = Closeable & ClientProxy; export class ClientsContainer { private clients: CloseableClient[] = []; public getAllClients(): CloseableClient[] { return this.clients; } public addClient(client: CloseableClient) { this.clients.push(client); } public clear() { this.clients = []; } } |