UNPKG

growwapi

Version:
6 lines (5 loc) 610 B
import { LiveFeedConnection, LiveFeedSubscriptionType } from '../../types'; export declare function connectToLiveFeed(): Promise<LiveFeedConnection>; export declare function liveFeedDecoder(type: LiveFeedSubscriptionType, data: Uint8Array): any; export declare function generateSubscriptionTopic(type: LiveFeedSubscriptionType, subscriptionId: string, exchangeToken?: number | string): Promise<string>; export declare function retryStrategy(connection: LiveFeedConnection | null, retryCount: number, disconnect: () => Promise<void>, reconnect: () => Promise<void>, action: () => Promise<void>): Promise<void>;