Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EventEmitter
    • Blobs

Index

Constructors

constructor

  • Returns Blobs

Methods

addPeer

  • addPeer(contactId: string, fn: SendFn): void
  • Parameters

    • contactId: string
    • fn: SendFn

    Returns void

addQueue

  • Parameters

    Returns void

drainQueue

  • drainQueue(contactId: string): Promise<void>
  • Parameters

    • contactId: string

    Returns Promise<void>

hasPendingFiles

  • hasPendingFiles(contactId: string): boolean
  • Parameters

    • contactId: string

    Returns boolean

receiveFile

  • receiveFile(contactId: string, data: ArrayBuffer): void
  • Receive a file for a contact.

    Parameters

    • contactId: string
    • data: ArrayBuffer

      The data we're receiving

    Returns void

removePeer

  • removePeer(contactId: string): void
  • Parameters

    • contactId: string

    Returns void

sendFile

  • Send a file to a contact. Will queue if contact is not currently online.

    Parameters

    Returns Promise<void>

    true if successful, false if file has been queued

Generated using TypeDoc