The API creates a session which returns a url that you can open inside an IFrame of your web page through this function:
- iframe: ID of Iframe on your page
- url: url session to open
- callback: event callback
The event callback must be only one parameters e.g.:
It’s called when the user is connected to the agent or when user is disconnected from the agent.
e.type = identifies event type (CONNECTED or DISCONNECTED)
e.availableApps = lists of available apps ([desktop, filesystem, …]). It’s present only if type=CONNECTED