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

Method createClient

packages/microservices/server/server-rmq.ts:169–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167 }
168
169 public createClient<T = any>(): T {
170 const socketOptions = this.getOptionsProp(this.options, 'socketOptions');
171 return rmqPackage.connect(this.urls, {
172 connectionOptions: socketOptions?.connectionOptions,
173 heartbeatIntervalInSeconds: socketOptions?.heartbeatIntervalInSeconds,
174 reconnectTimeInSeconds: socketOptions?.reconnectTimeInSeconds,
175 });
176 }
177
178 private registerConnectListener() {
179 this.server!.on(RmqEventsMap.CONNECT, (err: any) => {

Callers 1

startMethod · 0.95

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected