kubo-rpc-client
Version:
A client library for the Kubo RPC API
12 lines • 483 B
TypeScript
import type { EventHandler, Message } from '@libp2p/interface';
export interface PubsubSubscription {
handler: EventHandler<Message>;
controller: AbortController;
}
export declare class SubscriptionTracker {
private readonly _subs;
constructor();
subscribe(topic: string, handler: EventHandler<Message>, signal?: AbortSignal): AbortSignal;
unsubscribe(topic: string, handler?: EventHandler<Message>): void;
}
//# sourceMappingURL=subscription-tracker.d.ts.map