Share this page

# 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

Copy code

    TCA.vtcConnect("MyServer", 8888, "MyVts").then(function(result){
      TCA.done(result);
    }).catch(function (error) {
      TCA.doneWithError(error);
    });

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: