@sodazone/ocelloids-client - v2.5.2
    Preparing search index...

    Type Alias Subscription<T>

    Represents a persistent subscription.

    {
    id: "polkadot-transfers",
    agent: "xcm",
    args: {
    origin: "0",
    senders: "*",
    destinations: [
    "2000",
    "1000"
    ],
    events: "*",
    },
    channels: [
    {
    type: "webhook",
    url: "https://some.webhook"
    },
    {
    type: "websocket"
    }
    ]
    }
    type Subscription<T = AnySubscriptionInputs> = {
        agent: AgentId;
        args: T;
        channels: DeliveryChannel[];
        ephemeral?: boolean;
        id: SubscriptionId;
        public?: boolean;
    }

    Type Parameters

    Index

    Properties

    agent: AgentId

    The agent id.

    args: T

    The specific agent inputs.

    channels: DeliveryChannel[]

    An array of delivery channels.

    ephemeral?: boolean

    Indicates the persistence preference.

    The subscription id. Must be unique.

    public?: boolean

    Indicates a public scope.