# window.Window.linkedSessions

- **Module:** window
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/window.ts#L182
- **Page:** https://libtmux.org/en/ts/latest/reference/window-window-linkedsessions/

```
linkedSessions(): Selection<Session>
```

Every session this window is linked into.

## Examples

```ts
window.linkedSessions.map((entry) => entry.name);
```

## Guides

Pages that discuss `linkedSessions`.

- [Filtering and queries](/en/ts/latest/concepts/queries/)

## In other ports

Every session a window is linked into

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.linked_sessions`](/en/py/latest/reference/libtmux-window-linked_sessions/) (property) |
| Rust | [`window.Window.linked_sessions`](/en/rs/latest/reference/window-window-linked_sessions/) (method) |
| Go | [`tmux.Window.LinkedSessions`](/en/go/latest/reference/tmux-window-linkedsessions/) (method) |
| Java | no equivalent on `Window` |
| C# | [`LibTmux.Window.LinkedSessions`](/en/csharp/latest/reference/libtmux-window-linkedsessions/) (property) |
| C++ | `Window::linked_sessions` counts them rather than listing them |
| Swift | no equivalent on `Window` |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Kotlin, Scala or F#.
