> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/device/socketdisconnect.md).

# socketDisconnect

## Description

Disconnects a TCP connection through a socket.

## Input / Parameter

| Name | Description                 | Input Type  | Default | Options | Required |
| ---- | --------------------------- | ----------- | ------- | ------- | -------- |
| type | The type of connection.     | String/Text | -       | -       | Yes      |
| name | The name of the connection. | String/Text | default | -       | No       |

## Output

N/A

## Callback

### callback

The function to be executed if the connection is removed successfully.

### errorCallback

The function to be executed if the connection is not removed successfully.

## Video

Coming Soon.

## Example

TCP connection will be disconnected. See `socketConnect` for more information.

## Links
