Class: ClientFactory
Defined in: packages/microservices/src/client/client-factory.ts:17
Factory that creates the correct ClientProxy implementation for the given transport configuration.
Constructors
Constructor
ts
new ClientFactory(): ClientFactory;Returns
ClientFactory
Methods
create()
ts
static create(options): ClientProxy;Defined in: packages/microservices/src/client/client-factory.ts:24
Instantiates and returns a transport-specific ClientProxy.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | MicroserviceConfiguration | Transport configuration containing transport and options. |
Returns
Throws
When options.transport is not a supported transport.