isconnectionenabled
Returns whether the connection is enabled.
Syntax
isconnectionenabled(connection: Connection) -> boolean
Also available as
is_connection_enabled
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | Connection | Connection object to inspect. |
Returns
| Type | Description |
|---|---|
boolean | Current connection enabled state. |
Description
This is the function-call counterpart of reading Enabled from a connection returned by getconnections. Native or foreign-state connections may not expose local callback values.
Example
local event = Instance.new("BindableEvent")
event.Event:Connect(function() end)
local connection = getconnections(event.Event)[1]
print(isconnectionenabled(connection))
event:Destroy()
These are Game executor contracts. Check build requirements and session lifetimes before using them.
