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

Method registerModules

packages/microservices/nest-microservice.ts:116–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 }
115
116 public async registerModules(): Promise<any> {
117 this.socketModule &&
118 this.socketModule.register(
119 this.container,
120 this.applicationConfig,
121 this.graphInspector,
122 this.appOptions,
123 );
124
125 if (!this.appOptions.preview) {
126 this.microservicesModule.setupClients(this.container);
127 this.registerListeners();
128 }
129
130 this.setIsInitialized(true);
131
132 if (!this.wasInitHookCalled) {
133 await this.callInitHook();
134 await this.callBootstrapHook();
135 }
136 }
137
138 public registerListeners() {
139 this.microservicesModule.setupListeners(

Callers 2

initMethod · 0.95
listenMethod · 0.95

Calls 6

registerListenersMethod · 0.95
setIsInitializedMethod · 0.95
setupClientsMethod · 0.80
callInitHookMethod · 0.80
callBootstrapHookMethod · 0.80
registerMethod · 0.65

Tested by

no test coverage detected