> ## 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 method باسم Connect من signal، وتوصل 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 المراد فحصه. object غير 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>
