Package Exports
- @interopio/core
- @interopio/core/dist/core.es.js
- @interopio/core/dist/core.umd.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@interopio/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@interopio/core
Overview
The @interopio/core library provides the basic io.Connect interoperability capabilities (Interop API, Shared Contexts API, Pub/Sub API, Logger API, and the legacy Metrics API) and is used internally by all other major io.Connect libraries like @interopio/desktop, @interopio/browser, and more.
Installation
To install the library, execute the following command:
npm install @interopio/coreUsage
The following example demonstrates basic initialization of the @interopio/core library.
ℹ️ For more details on using the capabilities provided by the
@interopio/corelibrary, see the respective sections in the io.Connect Desktop official documentation or the io.Connect Browser official documentation.
import IOConnectCore from "@interopio/core";
// Use the initialized API object returned by the factory function to access the io.Connect APIs.
const io = await IOConnectCore();
// Using the io.Connect APIs.
await io.interop.register("myApp", () => {
console.log("Hello from myApp!");
});