• Set the global context reference.

    Call this once during application bootstrap. Framework adapters call this automatically.

    Parameters

    • ctx: undefined | SynapseContext

      The context to make globally available.

    Returns void

    1.2.0

    const ctx = createSynapseContext(config);
    setGlobalContext(ctx);