DataSocket Close Function
- Updated2025-07-30
- 2 minute(s) read
Closes a data connection you specify in connection id.

Inputs/Outputs
connection id
—
connection id is a connection refnum that uniquely identifies the connection.
ms timeout (0)
—
ms timeout (0) specifies the number of milliseconds the function waits for the pending operation to complete. The default is 0, which means the function does not wait for the operation to complete. Use a timeout value of –1 to make the function wait until the operation completes.
error in (no error)
—
error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality. This node runs normally even if an error occurred before this node runs.
timed out
—
timed out returns FALSE if the operation completed within the timeout interval with no errors. If ms timeout is 0, timed out is FALSE.
error out
—
error out contains error information. This output provides standard error out functionality. |
connection id
—
ms timeout (0)
—
error in (no error)
—
timed out
—
error out
—