General API Methods

General purpose API methods provide information about WMKS. These methods can be called at any time before or during connection to a target VM.

getVersion()

Retrieves the current version number of the HTML Console SDK.
Parameters
None
Return Value
Type: string. Contains the full version number of the HTML Console SDK.
Example Call
var version = wmks.getVersion();

getConnectionState()

Retrieves the current connection state.
Parameters
None
Return Value
Type: string. Any constant value for WMKS.CONST.ConnectionState. See WMKS Constants.
Example Call
var version = wmks.getConnectionState();