getClientToken()
getClientToken(
name):string
Defined in: src/jetstream.constants.ts:45
Generate the injection token for a forFeature() client.
Use with @Inject() to inject the client created by JetstreamModule.forFeature().
Parameters
name
string
The service name passed to forFeature({ name }).
Returns
string
The DI token string.
Example
@Inject(getClientToken('orders'))
private readonly ordersClient: JetstreamClient;