()
| 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( |
no test coverage detected