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

Method createPattern

packages/microservices/server/server-grpc.ts:249–259  ·  view source on GitHub ↗

* Will create a string of a JSON serialized format * * @param service name of the service which should be a match to gRPC service definition name * @param methodName name of the method which is coming after rpc keyword * @param streaming GrpcMethodStreamingType parameter which should cor

(
    service: string,
    methodName: string,
    streaming: GrpcMethodStreamingType,
  )

Source from the content-addressed store, hash-verified

247 * stream keyword in gRPC service request part
248 */
249 public createPattern(
250 service: string,
251 methodName: string,
252 streaming: GrpcMethodStreamingType,
253 ): string {
254 return JSON.stringify({
255 service,
256 rpc: methodName,
257 streaming,
258 });
259 }
260
261 /**
262 * Will return async function which will handle gRPC call

Callers 2

getMessageHandlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected