VoltConnection.Connected

Reports whether a VoltConnection is still active.

Syntax

connection.Connected: boolean

Description

Connected is a read-only boolean. It becomes false after Disconnect() or after a Once connection handles its first fire.

Example

local signal = VoltSignal.new()
local connection = signal:Connect(function() end)

print(connection.Connected) -- true
connection:Disconnect()
print(connection.Connected) -- false