API Reference
The io.Connect API is accessed through the io object, available via the React context after initialization with IOConnectProvider. Each API namespace provides methods for a specific capability.
API Namespaces
io.contexts
Create, update, subscribe to, and destroy shared context objects for global state management.
io.channels
Join, leave, publish to, and subscribe to color-coded channels for user-driven data linking.
io.interop
Register and invoke methods, create and subscribe to streams for RPC and real-time data.
io.intents
Register intent handlers and raise intents for workflow orchestration.
io.workspaces
Create, restore, and manage workspaces for advanced window arrangement.
Accessing the API
React (Recommended)
import { useContext } from "react";
import { IOConnectContext } from "@interopio/react-hooks";
function MyComponent() {
const io = useContext(IOConnectContext);
// io.contexts, io.channels, io.interop, etc.
}Vanilla JavaScript
// Browser Client
import IOBrowser from "@interopio/browser";
const io = await IOBrowser();
// io.contexts, io.channels, io.interop, etc.