# test.TestServer.socket_path

- **Module:** test.TestServer
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/test.rs#L773
- **Page:** https://libtmux.org/en/rs/latest/reference/test-testserver-socket_path/

```
test.TestServer.socket_path(self) -> &Path
```

Return this guard's explicit Unix socket path.

The path is removed during successful shutdown or forced Drop cleanup.

## Example

```rust
let guard = libtmux::test::TestServer::new().await?;
assert!(guard.socket_path().is_absolute());
guard.shutdown().await?;
```
