# Server.link(_:into:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/WindowTransfers.swift#L14
- **Page:** https://libtmux.org/reference/swift/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`
