Signals

getconnections

Returns connection objects for a signal.

Syntax

getconnections(signal: userdata): table
Aliases getsignalsget_signal_cons

Arguments

NameTypeDescription
signaluserdataSignal or event object to inspect or fire.

Returns

NameTypeDescription
connectionstableArray table of signal connection objects.

Description

Returns connection objects for a signal.

Call it with 1 parameter(s): signal. The argument table explains which values are required and which ones only refine the behavior.

It returns connections (table). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = getconnections(game)
print(result)