> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# getconnections

> Возвращает array table из RealConnection closures для RBXScriptSignal. Первый argument должен быть object с Luau type name RBXScriptSignal. Function читает Connect method сигнала, подключает temporary blank callback, читает linked list начиная с next reference временного соединения, отключает временное соединение и оборачивает каждый допустимый connection reference. Если после временного соединения connection reference не найден, возвращает пустую table. Ранее обернутые underlying references могут возвращать ту же cached closure table. getsignals и get_signal_cons являются aliases той же function.

<div className="real-function-page">
  ```lua theme={null}
  getconnections(signal: RBXScriptSignal): {RealConnection}
  ```

  ## Алиасы

  * `getsignals`
  * `get_signal_cons`

  ## Аргументы

  <ParamField path={"signal"} type={"RBXScriptSignal"} required>
    Signal для проверки. Userdata, не являющийся RBXScriptSignal, вызывает type error, а signal без вызываемого Connect field вызывает "Signal does not have 'Connect' method".
  </ParamField>

  ## Возвраты

  <ResponseField name={"connections"} type={"{RealConnection}"}>
    Array table из connection closure tables. Каждый closure предоставляет fields и methods через свою methods, включая Enabled, Disabled, LuaConnection, ForeignState, Function, Thread, Disconnect, Disable, Enable, Fire и Defer, когда они доступны.
  </ResponseField>

  ## Пример

  Inspect an RBXScriptSignal and list the wrapped connections Real can expose.

  ```lua theme={null}
  local Players = game:GetService("Players")

  for _, connection in ipairs(getconnections(Players.PlayerAdded)) do
      print(connection.Enabled, connection.LuaConnection)
  end
  ```
</div>
