create_channel
Creates a private communication channel using the native channel-name rules.
Function
Synopsis
mux.comsys.create_channel( name )
Arguments
string name- A non-empty printable ASCII name without spaces, shorter than 50 bytes.
Returns
Channel channel- A handle for the newly created channel.
Raises
mux.unavailable.checkingduring@lua/check.mux.arg.invalidfor an invalid name, including an embedded NUL byte.mux.channel.invalidwhen a channel with the same name already exists.
Example
local staff = mux.comsys.create_channel("Staff")
staff:flags():add(mux.comsys.flags.PUBLIC)