/** * Streaming Configuration Constants * * Default configuration values for the SSE/WebSocket streaming system. * These can be overridden at runtime through configuration objects. * * @module src/streaming/constants */ import type { StreamChannel } from '@plyaz/types/core'; /** * Server Configuration * * Default values for StreamServer and transport adapters */ export declare const STREAMING_SERVER_CONFIG: { /** * Default heartbeat interval in milliseconds * Keeps connections alive and detects stale clients */ readonly HEARTBEAT_INTERVAL_MS: 30000; /** * Maximum number of concurrent connections per server */ readonly MAX_CONNECTIONS: 1000; /** * Default channels to subscribe new connections to */ readonly DEFAULT_CHANNELS: StreamChannel[]; }; /** * Client Configuration * * Default values for client-side streaming hooks */ export declare const STREAMING_CLIENT_CONFIG: { /** * Delay before attempting to reconnect after disconnect */ readonly RECONNECT_DELAY_MS: 1000; /** * Maximum reconnection attempts before giving up */ readonly MAX_RECONNECT_ATTEMPTS: 10; /** * Default SSE endpoint path */ readonly SSE_ENDPOINT: "/api/events/stream"; }; /** * Buffer Configuration * * Default values for message buffering */ export declare const STREAMING_BUFFER_CONFIG: { /** * Default buffer size for queued messages (1KB) */ readonly DEFAULT_BUFFER_SIZE: 1024; /** * Flush interval for buffered messages */ readonly FLUSH_INTERVAL_MS: 1000; /** * Maximum buffer size before forced flush (10MB) */ readonly MAX_BUFFER_SIZE: number; }; /** * Streaming Package Configuration * * Aggregated configuration object for streaming system */ export declare const STREAMING_PACKAGE_CONFIG: { readonly SERVER: { /** * Default heartbeat interval in milliseconds * Keeps connections alive and detects stale clients */ readonly HEARTBEAT_INTERVAL_MS: 30000; /** * Maximum number of concurrent connections per server */ readonly MAX_CONNECTIONS: 1000; /** * Default channels to subscribe new connections to */ readonly DEFAULT_CHANNELS: StreamChannel[]; }; readonly CLIENT: { /** * Delay before attempting to reconnect after disconnect */ readonly RECONNECT_DELAY_MS: 1000; /** * Maximum reconnection attempts before giving up */ readonly MAX_RECONNECT_ATTEMPTS: 10; /** * Default SSE endpoint path */ readonly SSE_ENDPOINT: "/api/events/stream"; }; readonly BUFFER: { /** * Default buffer size for queued messages (1KB) */ readonly DEFAULT_BUFFER_SIZE: 1024; /** * Flush interval for buffered messages */ readonly FLUSH_INTERVAL_MS: 1000; /** * Maximum buffer size before forced flush (10MB) */ readonly MAX_BUFFER_SIZE: number; }; }; /** * Streaming Defaults (Flat) * * Flattened defaults for direct import compatibility * with existing code using STREAMING_DEFAULTS */ export declare const STREAMING_DEFAULTS: { readonly HEARTBEAT_INTERVAL_MS: 30000; readonly MAX_CONNECTIONS: 1000; readonly DEFAULT_CHANNELS: StreamChannel[]; readonly RECONNECT_DELAY_MS: 1000; readonly MAX_RECONNECT_ATTEMPTS: 10; readonly SSE_ENDPOINT: "/api/events/stream"; }; /** * Type for streaming defaults */ export type StreamingDefaults = typeof STREAMING_DEFAULTS; //# sourceMappingURL=constants.d.ts.map