Broadcast message to all the connected clients.
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)
Create and maintain channels for server local.
ChannelService is created by channel component which is a default loaded component of pinus and channel service would be accessed by
app.get('channelService')
.