function Xrdp(parameters)
Creates an Xrdp canvas and connects to the FastX Server
Usage
var xrdpcanvas = new Xrdp(parameters);
Parameters
Required
- geometry — widthxheight <string> Xrdp width and height
- password — Xrdp password generated from an /api/start/:token or /api/connect/:token call
- ws — websocket URL of the FastX session generated from an /api/start/:token or /api/connect/:token call
Optional
- username — name of the user who will connect (ignored by server)
- keyboardLayout — keyboardLayout to use
- keyboardType — keyboardType to use
- ready — function(canvas,cb) executed when the connection has been established
- canvas — the Xrdp canvas
- cb — callback functions to interact with the Xrdp server
- close — function() executed when the websocket closes
- disableMouse — disable default mouse handlers
- disableKeyboard — disable default keyboard handlers
Returns
- the Xrdp canvas element