> ## 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

> Returns connection objects for an RBXScriptSignal. The first argument must be a valid RBXScriptSignal.

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

  ## Aliases

  * `getsignals`
  * `get_signal_cons`

  ## Arguments

  <ParamField path={"signal"} type={"RBXScriptSignal"} required>
    Signal to inspect. Non-RBXScriptSignal object raises a type error, and a signal without a callable Connect field raises "Signal does not have 'Connect' method".
  </ParamField>

  ## Returns

  <ResponseField name={"connections"} type={"{RealConnection}"}>
    Array table of connection objects. Available fields and methods may include Enabled, Disabled, Function, Thread, Disconnect, Disable, Enable, Fire, and Defer.
  </ResponseField>

  ## Example

  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>
