UNPKG

@nestjstools/messaging-nats-extension

Version:

Extension to handle messages and dispatch them over Nats

9 lines (8 loc) 349 B
import { Channel } from '@nestjstools/messaging'; import { NatsChannelConfig } from './nats-channel.config'; import { NatsConnection } from 'nats'; export declare class NatsChannel extends Channel<NatsChannelConfig> { readonly client: Promise<NatsConnection>; constructor(config: NatsChannelConfig); onChannelDestroy(): Promise<void>; }