ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > REST Web Services Supported by WS EMS > TestPort
  
TestPort
The TestPort service tests the connection to a specified ThingWorx instance and port.
Inputs
Pass in the following, required parameters:
host - The URL of the WS EMS instance to connect to (as a STRING)
port - The number of the port to connect to (as an INTEGER)
As of v.5.4.1, the TestPort service supports simplified infotables. With that release, support for additional, optional parameters was expanded. As a result, you can pass in optional parameters as well as the required parameters. For example:

{
"host": "127.0.0.1", // Required
"port": "80", // Required
"useSSL":false, // Optional
"useProxy": false // Optional
}
Outputs
This service returns a true if the connection is successful, or false if it cannot connect.