CommChannel
Communication-channel fields and delivery behavior.
Created by create_comm_channel.
| Member | Type / signature | Meaning |
|---|---|---|
Id | number | Channel identifier. |
Event | signal-like table | Local wrapper signal with Connect, Once, Fire and Wait methods. |
Fire | Fire(...): () | Routes values through comm_channel_fire. |
local id, channel = create_comm_channel()
local connection = channel.Event:Connect(function(value) print(value) end)
channel:Fire("example")
-- Keep connection until delivery completes, then disconnect it.Event is added by create_comm_channel in the VM that calls it, so a channel looked up from another VM carries Id and Fire only. comm_channel_bind is the lower-level delivery registration. Rebinding it can replace Event delivery.
