MCPcopy
hub / github.com/nestjs/nest / send

Method send

integration/microservices/src/app.controller.ts:67–74  ·  view source on GitHub ↗
(tab: number[])

Source from the content-addressed store, hash-verified

65 @HttpCode(200)
66 concurrent(@Body() data: number[][]): Promise<boolean> {
67 const send = async (tab: number[]) => {
68 const expected = tab.reduce((a, b) => a + b);
69 const result = await lastValueFrom(
70 this.client.send<number>({ cmd: 'sum' }, tab),
71 );
72
73 return result === expected;
74 };
75 return data
76 .map(async tab => send(tab))
77 .reduce(async (a, b) => (await a) && b);

Callers 15

express.spec.tsFile · 0.45
express.spec.tsFile · 0.45
catchMethod · 0.45
pipes.spec.tsFile · 0.45
code-first.spec.tsFile · 0.45
testMsvcMethod · 0.45
ws-gateway.spec.tsFile · 0.45
graphql.spec.tsFile · 0.45
performHttpCallFunction · 0.45

Calls

no outgoing calls

Tested by 12

catchMethod · 0.36
performHttpCallFunction · 0.36
useMethod · 0.36
configureMethod · 0.36
configureMethod · 0.36
configureMethod · 0.36
configureMethod · 0.36
configureMethod · 0.36
configureMethod · 0.36
configureMethod · 0.36
configureMethod · 0.36
configureMethod · 0.36