# LibTmux::Server.new

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Server.rakumod#L290
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-server-new/

```
method new(:$binary = 'tmux', :$socket-name = '', :$socket-path = '',
           :$config-file = '', :$environment = %*ENV, :$cwd = $*CWD,
           :$timeout-ms = 10_000, :$max-output-bytes = 8 * 1024 * 1024,
           :$max-command-bytes = 12 * 1024)
```

Capture a borrowed endpoint without I/O. Closing it closes clients only.

Capture a borrowed endpoint without I/O. Closing it closes clients only.

## Parameters

- `$binary?`
- `$socket-name?`
- `$socket-path?`
- `$config-file?`
- `$environment?`
- `$cwd?`
- `$timeout-ms?`
- `$max-output-bytes?`
- `$max-command-bytes?`
