kubo-rpc-client
Version:
A client library for the Kubo RPC API
13 lines • 517 B
TypeScript
import type { Message } from './index.ts';
import type { EventHandler } 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