Creates an 'xcm' agent instance.
Configuration options for the OcelloidsClient, or an existing OcelloidsClient instance.
An object with methods for subscribing to XCM events and accessing 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"});// Subscribe to XCM eventsconst 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"});// Subscribe to XCM eventsconst ws = await agent.subscribe(...);
Creates an 'xcm' agent instance.