AcediaDocumentation

comm_channel_bind

Registers a delivery callback for a channel ID in the current VM.

One delivery half is stored per channel ID and VM. Rebinding replaces the previous callback, including the callback used by channel.Event. Prefer the channel object for normal use.

comm_channel_bind(id: number, callback: function): ()

Parameters

ParameterTypeDescription
idnumberChannel ID.
callbackfunctionFunction receiving delivered values.

On this page