@solana/rpc-subscriptions
Version:
A library for subscribing to Solana RPC notifications
13 lines • 522 B
TypeScript
import { RpcSubscriptionsChannel } from '@solana/rpc-subscriptions-spec';
export type ChannelPoolEntry = {
channel: PromiseLike<RpcSubscriptionsChannel<unknown, unknown>> | RpcSubscriptionsChannel<unknown, unknown>;
readonly dispose: () => void;
subscriptionCount: number;
};
type ChannelPool = {
readonly entries: ChannelPoolEntry[];
freeChannelIndex: number;
};
export declare function createChannelPool(): ChannelPool;
export {};
//# sourceMappingURL=rpc-subscriptions-channel-pool-internal.d.ts.map