onCloseChannel

Triggered when player or server closes a channel.

Prototypes
onCloseChannel(callback) -- callback = function(channelId)
Parameters
    • function(channelId): callback function
      • channelId: client-side channel id (integer value)
Usage
onCloseChannel(function(channelId)
    info("channel id " .. channelId .. " was closed")
  end)