1. Home
  2. Docs
  3. API
  4. Develop the web applicati...
  5. Open IFrame session

Open IFrame session

The API creates a session which returns a url that you can open inside an IFrame of your web page through this function:

dwsApiOpenIFrameSession(ifname, url, callback)

  • 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.:

function(e){
...
}

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