mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
18 lines
324 B
TypeScript
18 lines
324 B
TypeScript
import { ClientProxy } from './client/client-proxy';
|
|
|
|
export class ClientsContainer {
|
|
private clients: ClientProxy[] = [];
|
|
|
|
public getAllClients(): ClientProxy[] {
|
|
return this.clients;
|
|
}
|
|
|
|
public addClient(client: ClientProxy) {
|
|
this.clients.push(client);
|
|
}
|
|
|
|
public clear() {
|
|
this.clients = [];
|
|
}
|
|
}
|