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

    Interface ParsedStreamsClientOptions

    interface ParsedStreamsClientOptions {
        discoveryUrl?: string;
        maxReconnectAttempts?: number;
        onReconnect?: (info: ParsedStreamsReconnectInfo) => void;
        reconnect?: boolean;
        url?: string;
        WebSocket?: new (url: string) => unknown;
    }
    Index

    Properties

    discoveryUrl?: string

    Override the describeProgram endpoint (full URL, including the API key).

    maxReconnectAttempts?: number

    Consecutive failed reconnect attempts before giving up. Defaults to 10.

    onReconnect?: (info: ParsedStreamsReconnectInfo) => void

    Called after a reconnect restores the subscriptions.

    reconnect?: boolean

    Reconnect and resubscribe when the server closes the connection. Defaults to true.

    url?: string

    Override the subscription endpoint (full URL, including the API key).

    WebSocket?: new (url: string) => unknown

    WebSocket implementation. Defaults to the global WebSocket (browsers, Node 22+). On Node 20, pass WebSocket from the ws package, which also lets the client watch the server's pings to detect a dead connection.