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