Configures and manages the ESP RainMaker Neo SDK.

Holds process-wide configuration, adapters, and auth state. Call ESPRMNeoBase.configure once before using other SDK APIs. Low-level initialization helpers live in utils/baseUtils.

Constructors

Accessors

Methods

  • Configures the ESP RainMaker Neo SDK with the given options. Must be called before using any other SDK functionality.

    If the SDK is already configured, previous state is disposed first so re-configure is safe.

    Parameters

    • config: ESPRMNeoBaseConfig

      Base URL (include API Gateway stage if any), Cognito/IoT settings, and optional adapters.

    Returns void

    If the configuration is invalid or initialization fails.

  • Disposes SDK state and resets peer singletons so configure can run again. Prefer this over jest.resetModules() when tearing down in tests.

    Returns void

  • Returns a copy of the global default transport priority order.

    Returns string[]

    Shallow copy of the current transport order.

  • Sets the global default transport priority order. New nodes adopt this order at construction; existing nodes keep their current order unless updated per-node via ESPRMNeoNode.setTransportOrder.

    Parameters

    • order: string[]

      Non-empty ordered list of transport modes (built-in ESPTransportMode values or custom string keys).

    Returns void

    If the order is empty or not an array.