🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@openfin/remote-adapter

Package Overview
Dependencies
Maintainers
58
Versions
617
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfin/remote-adapter

Establish intermachine runtime connections using webRTC.

latest
npmnpm
Version
36.80.9
Version published
Weekly downloads
1.4K
136.44%
Maintainers
58
Weekly downloads
 
Created
Source

Remote Adapter

This package contains APIs for proxying API messages between OpenFin applications running on different machines.

The APIs provided require WebRTC peer connections. This package does not provide WebRTC peer connections for you, establishing those is up to you.

Useful resources:

Installation

With npm:

$ npm i -S @openfin/remote-adapter

With yarn:

$ yarn add @openfin/remote-adapter

Usage

Initialize a connection from a "host" OpenFin application.

import { init } from '@openfin/remote-adapter';

const rtcPeer = createWebRTCPeer(); // we don't provide this function it is the user's responsibility to create a RTCPeerConnection

await init({ fin: window.fin, rtc: rtcPeer });

Connect to the "host" application from a "remote" application.

import { connect } from '@openfin/remote-adapter';
import { fdc3FromFin } from '@openfin/fdc3-api';

const rtcPeer = createWebRTCPeer(); // we don't provide this function it is the user's responsibility to create a RTCPeerConnection

const fin = await connect({ rtc: rtcPeer });

// Connect to the host application as an interop client.
fin.me.interop = fin.Interop.connectSync('<HOST_APP_UUID>', {});

// Get an instance of fdc3 from using the fdc3-api package (https://www.npmjs.com/package/@openfin/fdc3-api).
const fdc3 = await fdc3FromFin(fin);

License

Copyright 2020-2023 OpenFin

The code in this package is distributed under the Apache License, Version 2.0.

However, if you run this code, it may call on the OpenFin RVM or OpenFin Runtime, which are covered by OpenFin's Developer, Community, and Enterprise licenses. You can learn more about OpenFin licensing at the links listed below or email us at support@openfin.co with questions.

FAQs

Package last updated on 27 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts