Creates an 'xcm' agent instance.
Configuration options for the OcelloidsClient.
An object with methods for subscribing to XCM events and general client API methods.
import { createXcmAgent } from "@sodazone/ocelloids-client";const agent = createXcmAgent({ httpUrl: "http://127.0.0.1:3000", wsUrl: "ws://127.0.0.1:3000"});const ws = await agent.subscribe(...); Copy
import { createXcmAgent } from "@sodazone/ocelloids-client";const agent = createXcmAgent({ httpUrl: "http://127.0.0.1:3000", wsUrl: "ws://127.0.0.1:3000"});const ws = await agent.subscribe(...);
Creates an 'xcm' agent instance.