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

Method subscribe

packages/microservices/server/server-nats.ts:83–87  ·  view source on GitHub ↗
(channel: string, queue: string)

Source from the content-addressed store, hash-verified

81
82 public bindEvents(client: Client) {
83 const subscribe = (channel: string, queue: string) =>
84 client.subscribe(channel, {
85 queue,
86 callback: this.getMessageHandler(channel).bind(this),
87 });
88
89 const defaultQueue = this.getOptionsProp(this.options, 'queue');
90 const registeredPatterns = [...this.messageHandlers.keys()];

Callers 15

bindMessageHandlersMethod · 0.80
sseMethod · 0.80
subscribeInitEventMethod · 0.80
bindMessageHandlersMethod · 0.80
ws-proxy.spec.tsFile · 0.80
bindTopicsMethod · 0.80
publishMethod · 0.80
publishMethod · 0.80

Calls 1

getMessageHandlerMethod · 0.95

Tested by 1

bindMessageHandlersMethod · 0.64