【发布时间】:2018-06-19 14:50:32
【问题描述】:
代码是:
`
let ChatEngine = ChatEngineCore.create({
publishKey: 'pub-c-bcc15813-f77d-4c89-a56a-18ac89bc8ad5',
subscribeKey: 'sub-c-8a4f7218-67db-11e8-9683-aecdde7ceb31'
});
// Provide a unique id and other profile information for your user here.
const uuid = String(new Date().getTime());
ChatEngine.connect(uuid, {
nickName: "YourUsersNickNameHere",
favoriteColor: "Red"
});
ChatEngine.on('$.ready', function(data) {
console.log('ChatEngine ready to go!');
});
`
【问题讨论】:
标签: pubnub