/**
 * Control-plane domain state — connected clients and live subscription posture.
 */
export function createInitialControlPlaneState() {
    return {
        revision: 0,
        lastUpdatedAt: 0,
        source: 'init',
        enabled: false,
        connectionState: 'disabled',
        host: '127.0.0.1',
        port: 3421,
        clients: new Map(),
        activeClients: new Map(),
        clientIds: [],
        activeClientIds: [],
        isRunning: false,
        lastError: undefined,
        totalConnections: 0,
        totalDisconnects: 0,
        totalFailures: 0,
        requestCount: 0,
        errorCount: 0,
        lastRequestAt: undefined,
        lastEventAt: undefined,
    };
}
