---
title: OpenSocket type | Wartiva GraphQL API
description: An open network socket on a process. Wartiva GraphQL API reference with arguments, fields, and examples. Browse related operations and types.
url: https://wartiva.com/api-docs/types/open-socket.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `OpenSocket` type

An open network socket on a process.

## Fields

| Field Name | Description |
|---|---|
| `family` - [`AddressFamily!`](https://wartiva.com/api-docs/types/address-family.html) | IP address family of the socket. |
| `type` - [`SocketType!`](https://wartiva.com/api-docs/types/socket-type.html) | Socket Protocol/Type. |
| `status` - [`OpenSocketStatus!`](https://wartiva.com/api-docs/types/open-socket-status.html) | State of the Socket. |
| `namespace` - [`Uint64`](https://wartiva.com/api-docs/types/uint64.html) | The namespace identifier for the socket if applicable, available only on Linux. |
| `path` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The filesystem path associated with the socket if applicable. |
| `remoteAddr` - [`IpAddress`](https://wartiva.com/api-docs/types/ip-address.html) | The remote IP address the socket is connected to. |
| `remotePort` - [`Int`](https://wartiva.com/api-docs/types/int.html) | The remote IP port the socket is connected to, an unsigned 16-bit integer. |
| `localAddr` - [`IpAddress`](https://wartiva.com/api-docs/types/ip-address.html) | The local IP address of the socket. |
| `localPort` - [`Int`](https://wartiva.com/api-docs/types/int.html) | The local IP port of the socket, an unsigned 16-bit integer. |

## Used by

- [`Executable`](https://wartiva.com/api-docs/types/executable.html) type: A unique executable file observed running on an Endpoint, aggregating data across all observed processes that share the same file system path.
- [`Process`](https://wartiva.com/api-docs/types/process.html) type: An operating system process.
- [`SeenOpenSocket`](https://wartiva.com/api-docs/types/seen-open-socket.html) type: An open socket snapshot and when it was last observed.

## Example

### Example

```json
{
  "family": "AF_UNSPEC",
  "type": "GENERIC",
  "status": "CLOSED",
  "namespace": "8589934592",
  "path": "xyz789",
  "remoteAddr": IpAddress,
  "remotePort": 987,
  "localAddr": IpAddress,
  "localPort": 987
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
