# libtmux.pytest_plugin.ServerFactory.__call__

- **Module:** libtmux.pytest_plugin
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/efdbb5637666b166358772ecc737b3807beab21e/src/libtmux/pytest_plugin.py#L331
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-pytest_plugin-serverfactory-__call__/

```
libtmux.pytest_plugin.ServerFactory.__call__(
    self,
    socket_name: str | None = None,
    socket_path: str | pathlib.Path | None = None,
    config_file: str | None = None,
    colors: int | None = None,
    on_init: t.Callable[[Server], None] | None = None,
    socket_name_factory: t.Callable[[], str] | None = None,
    tmux_bin: str | pathlib.Path | None = None,
    kill_on_exit: bool = False,
    timeout: float | None = None,
    kwargs: object,
) -> Server
```

Create a tracked :class:`~libtmux.Server`.

## Parameters

- `socket_name` (`str | None`)
  Default: `None`.
- `socket_path` (`str | pathlib.Path | None`)
  Default: `None`.
- `config_file` (`str | None`)
  Default: `None`.
- `colors` (`int | None`)
  Default: `None`.
- `on_init` (`t.Callable[[Server], None] | None`)
  Default: `None`.
- `socket_name_factory` (`t.Callable[[], str] | None`)
  Default: `None`.
- `tmux_bin` (`str | pathlib.Path | None`)
  Default: `None`.
- `kill_on_exit` (`bool`)
  Default: `False`.
- `timeout` (`float | None`)
  Default: `None`.
- `kwargs` (`object`)
