@openhps/mqtt
    Preparing search index...

    Interface MQTTServerOptions

    interface MQTTServerOptions {
        authenticate?: AuthenticateHandler;
        authorizeForward?: AuthorizeForwardHandler;
        authorizePublish?: AuthorizePublishHandler;
        authorizeSubscribe?: AuthorizeSubscribeHandler;
        cert?: Buffer;
        concurrency?: number;
        connectTimeout?: number;
        heartbeatInterval?: number;
        id?: string;
        keepaliveLimit?: number;
        key?: Buffer;
        maxClientsIdLength?: number;
        mq?: any;
        persistence?: any;
        port: number;
        preConnect?: PreConnectHandler;
        prefix?: string;
        published?: PublishedHandler;
        queueLimit?: number;
        tls?: boolean;
        websocket?: boolean;
    }

    Hierarchy

    • AedesOptions
      • MQTTServerOptions
    Index
    authenticate?: AuthenticateHandler
    authorizeForward?: AuthorizeForwardHandler
    authorizePublish?: AuthorizePublishHandler
    authorizeSubscribe?: AuthorizeSubscribeHandler
    cert?: Buffer

    Server certification (requires tls=true)

    concurrency?: number
    connectTimeout?: number
    heartbeatInterval?: number
    id?: string
    keepaliveLimit?: number
    key?: Buffer

    Server private key (requires tls=true)

    maxClientsIdLength?: number
    mq?: any
    persistence?: any
    port: number

    Server port

    preConnect?: PreConnectHandler
    prefix?: string

    Topic prefix

    published?: PublishedHandler
    queueLimit?: number
    tls?: boolean

    Secure server

    false
    
    websocket?: boolean

    MQTT over websocket connection