AcediaDocumentation

Connection

Inspection records returned by getconnections.

These records describe engine signal nodes; they differ from ordinary RBXScriptConnection objects.

local event = Instance.new("BindableEvent")
local bound = event.Event:Connect(function(value) print(value) end)
for _, entry in ipairs(getconnections(event.Event)) do
    if entry.LuaConnection and not entry.ForeignState then entry:Fire("example") end
end
bound:Disconnect()
event:Destroy()

Fields

MemberType / signatureMeaning
EnabledbooleanWhether the connection is enabled in the inspection record.
LuaConnectionbooleanWhether the connection is a Lua callback connection.
ForeignStatebooleanWhether the callback belongs to another VM.
Functionfunction?Callback when available; a wait entry may use a resumable wrapper.
Threadthread?Associated thread when available.

Methods

MemberType / signatureMeaning
FireFire(...): ()Schedules the live enabled handler through task.spawn.
DeferDefer(...): ()Schedules the handler through task.defer.
DisconnectDisconnect(): ()Drops the inspected connection.
DisableDisable(): ()Disables delivery.
EnableEnable(): ()Enables delivery where the connection remains live.

Use colon syntax to pass the record as self. A stale or disconnected node cannot be revived by retaining its table. Fire and Defer return without running a disabled or stale handler.

On this page