Tutorial: Interop.connectSync

Interop.connectSync

Connects an entity (window or view) to an Interop Broker. For platforms, since an Interop Broker is set up automatically, all views will call this function under the hood.

Example

const interopConfig = {
    currentContextGroup: 'green'
}

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