# Server.join(_:into:direction:size:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Navigation.swift#L175
- **Page:** https://libtmux.org/reference/swift/server-join(_-into-direction-size-)/

```
Server.join(_:into:direction:size:)(pane: Pane, into: Window, direction: PaneDirection, size: PaneSize?) -> ()
```

Moves a pane into another window, splitting it.

A split that moves a pane rather than starting one, so it says where the
pane goes the same way ``Server/splitWindow(_:direction:size:startDirectory:)``
does — and defaults the same way, to ``PaneDirection/below``.

## Raises

- `TmuxError`
