Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActivityTracking

Hierarchy

  • ActivityTracking

Index

Properties

Private activity_callbacks

activity_callbacks: Map<string, Function> = new Map()

Map of callbacks that receive transfer update events

Private event_callbacks

event_callbacks: Map<string, Function> = new Map()

Map of callbacks that receive connection events

Private lastSafariExtensionEvent

lastSafariExtensionEvent: SafariExtensionEvent = "DISABLED"

Keep track of the last Safari extension event

Private lastWebSocketEvent

lastWebSocketEvent: WebsocketEvent = "CLOSED"

Keep track of the last WebSocket event

Private removed_callbacks

removed_callbacks: Map<string, Function> = new Map()

Map of callbacks that received removed transfer events

Private safari_extension_callbacks

safari_extension_callbacks: Map<string, Function> = new Map()

Map of callbacks that receive Safari extension events

Methods

handleSafariExtensionEvents

handleTransferActivity

handleWebSocketEvents

  • Notify all consumers when a connection webSocketEvent occurs. For example, when the SDK websocket connection to IBM Aspera Browser is closed or reconnected.

    Parameters

    Returns void

Private registerDesktopAppSession

  • registerDesktopAppSession(): void

removeCallback

  • removeCallback(id: string): void
  • Remove the callback (deregister) from the list of callbacks

    Parameters

    • id: string

      the string of the callback to remove

    Returns void

removeRemovedCallback

  • removeRemovedCallback(id: string): void
  • Remove the callback (deregister) from the list of callbacks

    Parameters

    • id: string

      the string of the callback to remove

    Returns void

removeSafariExtensionEventCallback

  • removeSafariExtensionEventCallback(id: string): void
  • Remove the callback (deregister) from the list of callbacks

    Parameters

    • id: string

      the string of the callback to remove

    Returns void

removeWebSocketEventCallback

  • removeWebSocketEventCallback(id: string): void
  • Remove the callback (deregister) from the list of callbacks

    Parameters

    • id: string

      the string of the callback to remove

    Returns void

setCallback

setRemovedCallback

  • setRemovedCallback(callback: (transfer: BrowserTransfer) => void): string

setSafariExtensionEventCallback

setWebSocketEventCallback

  • setWebSocketEventCallback(callback: (status: WebsocketEvent) => void): string

setup

  • setup(): Promise<unknown>
  • Set up the activity tracking with IBM Aspera Browser.

    Returns Promise<unknown>

    a promise that resolves when the websocket connection is established. Currently, this promise does not reject.