# Server.link(_:into:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/WindowTransfers.swift#L16
- **Page:** https://libtmux.org/en/swift/latest/reference/server-link(_-into-)/

```
Server.link(_:into:)(window: Window, into: Session) -> WindowLink
```

Links a window into another session. The same window then appears in both, sharing one id — which is tmux's model, not a copy. The source is global because no existing session-local appearance is involved.

## Raises

- `TmuxError`
