UNPKG

@convious/convious-analytics

Version:

A library that allows recording page views and transactions for Convious pricing API

20 lines (19 loc) 660 B
export interface EventLogger { logEvent(eventType: string, accountId: string, cookieId: string, body: any): Promise<void>; } export declare const ConsoleEventLogger: EventLogger; export declare class WebsocketEventLogger { private charonUrl; private socket; private logQueue; private ackHandlers; constructor(charonUrl: string); private openSocket; private closeSocket; private handleAcks; private ensureSocketOpen; private expectAck; private logEventJob; logEvent(eventType: string, accountId: string, cookieId: string, body: any): Promise<void>; } export declare function createEventLogger(): EventLogger;