微信小程序
初始化时直接报错,sdk是5.0.0-rc.5
初始化代码如下:
const { Realtime, setAdapters } = require('./libs/leancloud-realtime.js');
const adapters = require('./libs/leancloud-adapters-weapp.js');
setAdapters(adapters); // 为即时通讯 SDK 设置 adapters
this.globalData.realtime = new Realtime({
appId: 'LNqD4S0dGURsvBSfI14cS9Ky-gzGzoHsz',
appKey: '3Ttj0YRmhHwuitq33dtkgc5U',
server: "https://im.test.aihuihc.com",
});
------错误日志:
------报错源码位置:
connection.js文件