@synet/realtime
Version:
Realtime Communication server/client implementations
30 lines (26 loc) • 488 B
text/typescript
import type { RealtimeEvent } from "@synet/patterns/realtime";
/**
* NATS-specific configuration options
*/
export interface NatsOptions {
/**
* Authentication options
*/
user?: string;
password?: string;
token?: string;
/**
* Connection options
*/
maxReconnects?: number;
reconnectTimeWait?: number;
/**
* Subject prefix for all topics
* @default "topic"
*/
subjectPrefix?: string;
/**
* Enable verbose logging
*/
debug?: boolean;
}