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

Method bindEvents

packages/microservices/server/server-grpc.ts:106–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 public async bindEvents() {
107 const grpcContext = this.loadProto();
108 const packageOption = this.getOptionsProp(this.options, 'package');
109 const packageNames = Array.isArray(packageOption)
110 ? packageOption
111 : [packageOption];
112
113 for (const packageName of packageNames) {
114 const grpcPkg = this.lookupPackage(grpcContext, packageName);
115 await this.createServices(grpcPkg, packageName);
116 }
117 }
118
119 /**
120 * Will return all of the services along with their fully namespaced

Callers 6

startMethod · 0.95

Calls 3

loadProtoMethod · 0.95
lookupPackageMethod · 0.95
createServicesMethod · 0.95

Tested by

no test coverage detected