# Libtmux.Endpoint.socket_path

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L40
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-endpoint-socket_path/

```
val socket_path : string -> t
```

`socket_path path` describes an absolute `-S path` endpoint. It does not check existence or resolve symbolic links. Raises `Invalid_argument` if `path` is relative, empty or contains NUL.

## Parameters

- `arg1` (`string`)

## Guides

Pages that discuss `socket_path`.

- [Install and run your first capture](/en/ocaml/latest/guides/getting-started/)
