Binary communication This will allow file contents to be transferred across the connection, as well as languages that may be byte compiled. The API should be as similar as possible on all platforms. Ease of use The API should be as simple as possible to use and not require much code support from the API user. The scripting language used should be well documented, well designed and mature. Architecture The API should be implemented as a library that can be used by both the application and the browser.
Communication consists of three phases.
For the application, this consists of locating the browser and initialising the connection to it. A handle is returned which is then used by the API user to provide the API with a context. In the second phase, the application can send data to the browser to be executed, and take action on the results. Finally, the connection may be closed by either end. The browser uses the API in a similar way, but has a different first phase.