TCA.vtcConnect
Creates a connection to the server (supports HTTP).
Equivalent method in VuGen VTS: lrvtc_connect
TCA.vtcConnect(serverName, port, vtsName);
Note: To connect using HTTPS, basic authentication, or NTLM authentication, use TCA.vtcConnectEx.
Arguments
Name | Description |
---|---|
serverName | (string) The IP or name of the server. |
port | (integer) The port number. |
vtsName (Optional) | (string) The alias of the VTS server. |
Return value
A promise that is fulfilled with 0 if completed successfully. Upon failure, an exception is thrown.
Example
TCA.vtcConnect("MyServer", 8888, "MyVts").then(function(result){
TCA.done(result);
}).catch(function (error) {
TCA.doneWithError(error);
});