Skip to main content
Version: 5.7.0

SysGetChannelInfo

tip

This method is available in Cloud Code scripts only.

Returns description info and activity stats for the specified channel. Note that numMembers, numListeners and listeners are only returned for non-global groups.

ServiceOperation
chatSYS_GET_CHANNEL_INFO

Method Parameters

ParameterDescription
channelIdThe id of the channel

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"id": "55555:gl:brainCloudDev",
"type": "gl",
"code": "brainCloudDev",
"name": "brainCloud dev",
"desc": "For discussing brainCloud development status",
"stats": {
"messageCount": 25
}
}
}
Common Error Code

Status Codes

CodeNameDescription
40346CHAT_INVALID_CHANNEL_IDThe channel id provided is invalid.
40601RTT_NOT_ENABLEDRTT must be enabled for this feature
40616CLOUD_CODE_ONLYMethod only available via cloud code