Interface TcpServerOptions

interface TcpServerOptions {
    connectionTimeout?: number;
    requestTimeout?: number;
    maxMessageSize?: number;
    autoReconnect?: boolean;
    maxReconnectAttempts?: number;
    reconnectDelay?: number;
    reconnectBackoffMultiplier?: number;
    maxReconnectDelay?: number;
    host?: string;
    maxConnections?: number;
    keepAlive?: boolean;
    keepAliveInitialDelay?: number;
    noDelay?: boolean;
}

Hierarchy

Properties

connectionTimeout?: number

Connection timeout in milliseconds

requestTimeout?: number

Request timeout in milliseconds (default: 30000)

maxMessageSize?: number

Maximum message size in bytes (default: 1MB)

autoReconnect?: boolean

Enable automatic reconnection (client only)

maxReconnectAttempts?: number

Maximum reconnection attempts

reconnectDelay?: number

Reconnection delay in milliseconds

reconnectBackoffMultiplier?: number

Reconnection backoff multiplier

maxReconnectDelay?: number

Maximum reconnection delay in milliseconds

host?: string

Host to bind to

maxConnections?: number

Maximum concurrent connections

keepAlive?: boolean

Enable TCP keepalive for client connections

keepAliveInitialDelay?: number

Keepalive initial delay in milliseconds

noDelay?: boolean

Disable Nagle's algorithm