Documentation
    Preparing search index...

    Interface ConfigService

    NAP-CONFIG reference service bundle — handler to register with the runtime, publishValues for the host app to push updates live to all subscribed napplets.

    interface ConfigService {
        handler: ServiceHandler;
        publishValues(values: ConfigValues): void;
    }
    Index

    Properties

    Methods

    Properties

    Register this with the runtime via runtime.registerService('config', handler).

    Methods

    • Broadcast a new values snapshot to every napplet with an active config.subscribe. Each subscriber receives a config.values envelope with no id (push form per wire spec — absence of id distinguishes push from correlated config.get response).

      Parameters

      • values: ConfigValues

        The new configuration snapshot (full object, not a diff)

      Returns void