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

> Mengembalikan array table berisi RealConnection closures untuk RBXScriptSignal. Argument pertama harus berupa object dengan Luau type name RBXScriptSignal. Function membaca Connect method milik signal, menghubungkan temporary blank callback, membaca linked list mulai dari next reference koneksi sementara, memutus koneksi sementara, lalu membungkus setiap connection reference yang valid. Jika tidak ada connection reference yang ditemukan setelah koneksi sementara, function mengembalikan table kosong. references yang sebelumnya sudah dibungkus dapat mengembalikan cached closure table yang sama. getsignals dan get_signal_cons adalah aliases untuk function yang sama.

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

  ## Alias

  * `getsignals`
  * `get_signal_cons`

  ## Argumen

  <ParamField path={"signal"} type={"RBXScriptSignal"} required>
    Signal yang akan diperiksa. Userdata non-RBXScriptSignal memunculkan type error, dan signal tanpa Connect field yang dapat dipanggil memunculkan "Signal does not have 'Connect' method".
  </ParamField>

  ## Return

  <ResponseField name={"connections"} type={"{RealConnection}"}>
    Array table berisi connection closure tables. Setiap closure mengekspos fields dan methods melalui methods-nya, termasuk Enabled, Disabled, LuaConnection, ForeignState, Function, Thread, Disconnect, Disable, Enable, Fire, dan Defer jika tersedia.
  </ResponseField>

  ## Contoh

  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>
