@logistically/events
Version:
A production-ready event-driven architecture library for NestJS with Redis Streams, comprehensive batching, reliable consumption, and enterprise-grade features.
22 lines (21 loc) • 629 B
TypeScript
import { ClientProxy } from '@nestjs/microservices';
export interface RedisStreamsClientOptions {
host: string;
port: number;
stream: string;
password?: string;
tls?: any;
verbose?: boolean;
}
export declare class RedisStreamsClientProxy extends ClientProxy {
private client;
private options;
private verbose;
constructor(options: RedisStreamsClientOptions);
connect(): Promise<any>;
close(): Promise<void>;
dispatchEvent(packet: any, options?: {
stream?: string;
}): Promise<any>;
protected publish(packet: any, callback: (packet: any) => void): () => void;
}