Creates a communication channel and returns its numeric id and a receiver object. Pass the id into an actor, call get_comm_channel there to get a BindableEvent, and fire it to send messages back. The receiver on this side carries the Event you connect to.

Returns

number
The channel id, followed by a receiver object with an Event.

Example

Errors