Make a GET for retrieving data from a server
the url string of the resource on the server
a promise that will resolve with the response from the server or reject if network/server error
Create a dropzone for the given element selector.
the function to call once the files are dropped
the selector of the element on the page that should watch for drop events
Remove a callback from the transfer callback
the ID returned by registerActivityCallback
Remove a callback from the removed transfer callback
the ID returned by registerRemovedCallback
Remove a callback from getting Safari extension status events.
the ID returned by registerStatusCallback
Remove a callback from getting connection status events.
the ID returned by registerStatusCallback
Log errors from Aspera Browser SDK
the message indicating the error encountered
the data with useful debugging information
Generate error object for rejecter responses
the message indicating the error encountered
the data with useful debugging information
object containing standardized error response
Generates promise object that can be resolved or rejected via functions
an object containing the promise, the resolver and rejecter
Get all transfers associated with the current application.
a promise that resolves with an array of transfers.
Simple function to get the current platform.
a string indicating the current platform
Get metadata about the IBM Aspera Browser installation.
a promise that returns information about the user's IBM Aspera Browser installation.
Get the latest Aspera Browser installer information such as download URL and version.
Installer info options
a promise that resolves with the installer info and rejects if there is an error
Get a specific transfer by ID.
transfer uuid
a promise that resolves with the transfer.
Returns a string indicating the websocket URL to use for talking to the server
a string of the full Websocket URL
Check HTTP promise response for server error response (non 2XX status) and reject promise is error
the HTTP promise to check for HTTP status code of 2XX for success
promise for the HTTP connection with catch supporting error
Wraps a promise like object and returns a promise that supports catch.
the HTTP promise like to wrap
promise for the HTTP connection with catch supporting error
Initialize IBM Aspera Browser client. If client cannot (reject/catch), then client should attempt fixing server URL or trying again. If still fails disable UI elements.
initialization options:
appId
the unique ID for the website. Transfers initiated during this session
will be associated with this ID. It is recommended to use a unique ID to keep transfer
information private from other websites.
supportMultipleUsers
when enabled (defaults to false), the SDK will iterate over a port
range and generate a session id to determine the running instance of the desktop app for the
current user. This is needed when multiple users may be logged into the same machine
simultaneously, for example on a Windows Server.
a promise that resolves if IBM Aspera Desktop is running properly or rejects if unable to connect
Initialize drag and drop.
a promise that resolves if the initialization was successful or not
Checks if the current browser is Safari.
Whether the browser is Safari.
Validate if transferSpec is valid for server communication
the transferSpec to test
boolean indicating whether supplied transferSpec is valid
Check if the given string is a valid URL
string to check if valid URL
boolean
Modify the speed of a running transfer.
transfer uuid
transfer rate options
a promise that resolves if the transfer rate can be modified and rejects if not
Function used to create a random UUID
string
Register a callback event for getting transfer updates
callback function to receive transfers
ID representing the callback for deregistration purposes
Register a callback event for when a user removes or cancels a transfer directly from IBM Aspera Browser. This may also be called if IBM Aspera Browser is configured to automatically remove completed transfers.
callback function to receive transfers
ID representing the callback for deregistration purposes
Register a callback for getting updates about the Safari extension status.
This can be useful if you want to handle the case where the user enable or disable the Safari extension.
callback function to receive events
ID representing the callback for deregistration purposes
Register a callback for getting updates about the connection status of IBM Aspera Browser.
For example, to be notified of when the SDK loses connection with the application or connection
is re-established. This can be useful if you want to handle the case where the user quits IBM Aspera Browser
after init
has already been called, and want to prompt the user to relaunch the application.
callback function to receive events
ID representing the callback for deregistration purposes
Remove dropzone.
the selector of the element on the page that should remove
Remove a transfer. This will stop the transfer if it is in progress.
transfer uuid
a promise that resolves if transfer is removed and rejects if transfer cannot be removed
Resume a paused or failed transfer.
transfer uuid
resume transfer options
a promise that resolves with the new transfer object if transfer is resumed
Set the custom branding template to be used by IBM Aspera Browser. If the app is already configured to use a different branding, then the branding template you specify will be stored by the app, allowing the end user to switch at any point.
custom branding template id. This should be consistent across page loads.
custom branding options
a promise that resolves if the branding was properly set.
Opens and highlights the downloaded file in Finder or Windows Explorer. If multiple files, then only the first file will be selected.
transfer uuid
a promise that resolves if the file can be shown and rejects if not
Opens the IBM Aspera Browser preferences page.
a promise that resolves when the preferences page is opened.
Displays a file browser dialog for the user to select files.
file dialog options
a promise that resolves with the selected file(s) and rejects if user cancels dialog
Displays a folder browser dialog for the user to select folders.
folder dialog options
a promise that resolves with the selected folder(s) and rejects if user cancels dialog
Start a transfer
standard transferSpec for transfer
IBM Aspera Browser settings when starting a transfer
a promise that resolves if transfer initiation is successful and rejects if transfer cannot be started
Stop a transfer.
transfer uuid
a promise that resolves if transfer is stopped and rejects if transfer cannot be stopped
Check if IBM Aspera for Desktop connection works. This function is called by init when initializing the SDK. This function can be used at any point for checking.
a promise that resolves if server can connect or rejects if not
Return a rejected promise
the message indicating the error encountered
the data with useful debugging information
a rejected promise
Global keep alive timeout to prevent recursion.