# LibTmux::ControlConnection.new

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

```
def self.new: (
  binding: untyped,
  session_id: ::String,
  ?reconnect: ::LibTmux::ControlConnection?,
  ?max_requests: ::Integer,
  ?max_command_bytes: ::Integer,
  ?max_queue_bytes: ::Integer,
  ?max_line_bytes: ::Integer,
  ?max_reply_bytes: ::Integer,
  ?max_stderr_bytes: ::Integer,
  ?max_subscriptions: ::Integer
) -> ::LibTmux::ControlConnection
```

Behavior: Control connections.

Behavior contract: Control connections.

## Parameters

- `binding` (`untyped`)
- `session_id` (`::String`)
- `reconnect` (`::LibTmux::ControlConnection?`)
- `max_requests` (`::Integer`)
- `max_command_bytes` (`::Integer`)
- `max_queue_bytes` (`::Integer`)
- `max_line_bytes` (`::Integer`)
- `max_reply_bytes` (`::Integer`)
- `max_stderr_bytes` (`::Integer`)
- `max_subscriptions` (`::Integer`)
