xk6-mqtt
    Preparing search index...

    Interface ConnectOptions

    Options for connecting to an MQTT broker.

    interface ConnectOptions {
        clean_session?: boolean;
        connect_timeout?: number;
        keepalive?: number;
        servers?: string[];
        tags?: Record<string, string>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    clean_session?: boolean

    By setting this flag, you are indicating that no messages saved by the broker for this client should be delivered.

    connect_timeout?: number

    Connection timeout in milliseconds (default: 30000)

    keepalive?: number

    Keep-alive interval in seconds (default: 60)

    servers?: string[]

    Array of broker URLs to connect to (for failover)

    tags?: Record<string, string>

    Optional tags for metrics and logging.