Actors & channelsOverview
create_comm_channel
Creates an actor communication channel.
Details#
Creates a communication channel backed by a BindableEvent and returns its numeric ID followed by the event object. Keep the ID for get_comm_channel and use Event:Connect / Fire for messages.
Examples#
Example
local id, channel = create_comm_channel()
local connection = channel.Event:Connect(print)
channel:Fire("hello")
connection:Disconnect()
channel:Destroy()