# server.ServerOptions.socketName

- **Module:** server
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/server.ts#L160
- **Page:** https://libtmux.org/en/ts/latest/reference/server-serveroptions-socketname/

The socket name, passed to tmux as `-L`.

With neither [`socketName`](/en/ts/latest/reference/server-serveroptions-socketname/) nor [`socketPath`](/en/ts/latest/reference/server-serveroptions-socketpath/) given, the server reads
`LIBTMUX_SOCKET_PATH`, else `LIBTMUX_SOCKET`, from
[`ServerOptions.environment`](/en/ts/latest/reference/server-serveroptions-environment/); a variable that is empty or only
whitespace counts as unset. With none set it passes tmux no socket, and tmux
picks the server: the one `TMUX` names inside tmux, otherwise its default
socket. A socket given here is never overridden by either variable.
