frontend server type string
route string
message
callback
Create channel with name.
channel's name
Destroy channel by name.
channel name
Get channel by name.
channel's name
if true, create channel
Push message by uids. Group the uids by group. ignore any uid if sid not specified.
message route
message that would be sent to client
the receiver info list, [{uid: userId, sid: frontendServerId}]
cb(err)
Broadcast message to all the connected clients.
ChannelService