# LibTmux::Server#switch_client

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/d8ce4bbee0ca7748a81929f81f7d8d07f8c51267/gems/libtmux/lib/libtmux/terminal.rb#L34
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.3/reference/libtmux-server-switch_client/

```
def switch_client: (
  client: ::String,
  session: ::LibTmux::EntityRef,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Resolves the literal selector at dispatch; it is not a client reference.

Behavior contract: Client switching.

## Parameters

- `client` (`::String`)
- `session` (`::LibTmux::EntityRef`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)
