Interface Subscriber<Topic, Update, SubscribeInfo>

A pubsub protocol subscriber.

interface Subscriber<
    Topic = Name,
    Update extends Event = SyncUpdate<Topic>,
    SubscribeInfo = Topic,
> {
    subscribe: (topic: SubscribeInfo) => Subscription<Topic, Update>;
}

Type Parameters

Implemented by

Properties

Properties

subscribe: (topic: SubscribeInfo) => Subscription<Topic, Update>