AboutSupportDeveloper GuideVersion 40.130.101.1

Manages creation of Interop Brokers and Interop Clients. These APIs are called under-the-hood in Platforms.

Hierarchy

  • Base
    • InteropModule

Accessors

Methods

Accessors

  • get me(): Identity
  • Returns Identity

    me should only be accessed from the fin global (FinApi.me); access through entity classes is not guaranteed to behave sensibly in all calling contexts.

Methods

  • Connects a client to an Interop broker. This is called under-the-hood for Views in a Platform.

    Parameters

    • name: string

      The name of the Interop Broker to connect to. For Platforms, this will default to the uuid of the Platform.

    • OptionalinteropConfig: InteropConfig

      Information relevant to the Interop Broker. Typically a declaration of what context(s) the entity wants to subscribe to, and the current Context Group of the entity.

    Returns InteropClient

    const interopConfig = {
    currentContextGroup: 'green'
    }

    const interopBroker = await fin.Interop.init('openfin');
    const client = await fin.Interop.connectSync('openfin', interopConfig);
    const contextGroupInfo = await client.getInfoForContextGroup();
    console.log(contextGroupInfo);
  • Initializes an Interop Broker. This is called under-the-hood for Platforms.

    Parameters

    Returns Promise<InteropBroker>

    For Platforms, this is set up automatically. We advise to only create your own Interop Broker when not using a Platform app. You can override functions in the Interop Broker. More info here.

    const interopBroker = await fin.Interop.init('openfin');
    const contextGroups = await interopBroker.getContextGroups();
    console.log(contextGroups);