onOpenChannel

Triggered when player or server opens a new channel.

Prototypes
onOpenChannel(callback) -- callback = function(channelId, name)
Parameters
    • function(channelId, name): callback function
      • channelId: client side channel id.
      • name: channel name
Usage
onOpenChannel(function(channelId, name)
    info("channel " .. name .. " with " .. channelId .. " id was opened")
  end)