Helius SDK - v3.4.0
    Preparing search index...

    Interface EnhancedSubscription<T>

    An active Enhanced WebSocket subscription. Implements AsyncIterable for consuming notifications and provides an unsubscribe() method to clean up. Exiting a for await loop early (via break, return, or a thrown error) also unsubscribes.

    interface EnhancedSubscription<T> {
        subscriptionId: number;
        unsubscribe(): Promise<boolean>;
    }

    Type Parameters

    • T

    Hierarchy

    • AsyncIterable<T>
      • EnhancedSubscription
    Index

    Properties

    Methods

    Properties

    subscriptionId: number

    The server-assigned subscription ID.

    Methods

    • Unsubscribe and stop receiving notifications.

      Returns Promise<boolean>