# TmuxMode.connected(to:)

- **Module:** TmuxMode
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** constant
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/TmuxMode.swift#L25
- **Page:** https://libtmux.org/reference/swift/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.
