【发布时间】:2016-05-04 14:42:25
【问题描述】:
我已关注此DOCUMENT 与 PubNub Angularjs,频道组合作。但是我收到了这个错误:
这是我的代码:
Pubnub.init({
publish_key: constants.PUBNUB_PUBLISH_KEY,
subscribe_key: constants.PUBNUB_SUBSCRIBE_KEY,
uuid: $scope.user.IncubatorContactId + "_Layout",
error: function(error) {
console.log('Pubnub.init() Error:', error);
}
});
Pubnub.channel_group_add_channel({
callback: function(m) {
console.log('channel_group_add_channel', 'success', m);
},
channel: channels[0],
channel_group: $scope.user.IncubatorContactId
});
有人请帮帮我!
【问题讨论】:
-
您的频道组名称是什么?你的频道名称是什么?您能否将完整的代码示例提供给 support@pubnub.com(连同您的密钥),以便他们可以重现此内容。