# TmuxMode.connected(to:)

- **Module:** TmuxMode
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** constant
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/TmuxMode.swift#L26
- **Page:** https://libtmux.org/en/swift/latest/reference/tmuxmode-connected(to-)/

One control-mode connection carrying every call in the scope.

The session is part of the mode rather than a separate argument, because
a connection is a client and tmux has no client attached to nothing: one
with no target runs tmux's default command and *creates* a session. The
session named here must already exist.
