AboutSupportDeveloper GuideVersion 47.154.100.2
OpenFin JavaScript API
    Preparing search index...

    Class InteropModule

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

    Hierarchy

    • Base
      • InteropModule
    Index
    • 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.

    • 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 Interop.InteropClient

      const interopConfig = {
      currentContextGroup: 'fdc3.channel.4'
      }

      const interopBroker = await fin.Interop.init('openfin');
      const client = await fin.Interop.connectSync('openfin', interopConfig);
      const contextGroupInfo = await client.getInfoForContextGroup();
      console.log(contextGroupInfo);