Skip to content

Commit

Permalink
Merge pull request #7345 from alexreal1314/bugfix/amqpConnectionMgr
Browse files Browse the repository at this point in the history
fix(microservices): fixed bug that socketOptions object not passed to…
  • Loading branch information
kamilmysliwiec authored Jun 30, 2021
2 parents 34c8453 + 674dd56 commit d31b207
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/microservices/server/server-rmq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {

public createClient<T = any>(): T {
const socketOptions = this.getOptionsProp(this.options, 'socketOptions');
return rqmPackage.connect(this.urls, { connectionOptions: socketOptions });
return rqmPackage.connect(this.urls, {
connectionOptions: socketOptions,
heartbeatIntervalInSeconds: socketOptions?.heartbeatIntervalInSeconds,
reconnectTimeInSeconds: socketOptions?.reconnectTimeInSeconds
});
}

public async setupChannel(channel: any, callback: Function) {
Expand Down

0 comments on commit d31b207

Please sign in to comment.