差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 后一修订版 两侧同时换到之后的修订记录 | ||
im:web:intro:basic [2019/07/04 09:18] zhangdong [创建连接] |
im:web:intro:basic [2019/08/28 07:28] lizg [创建连接] |
||
---|---|---|---|
行 6: | 行 6: | ||
var conn = {}; | var conn = {}; | ||
WebIM.config = config; | WebIM.config = config; | ||
- | conn = WebIM.conn = new WebIM.connection({ | + | conn = WebIM.conn = new WebIM.default.connection({ |
appKey: WebIM.config.appkey, | appKey: WebIM.config.appkey, | ||
isHttpDNS: WebIM.config.isHttpDNS, | isHttpDNS: WebIM.config.isHttpDNS, | ||
行 12: | 行 12: | ||
https: WebIM.config.https, | https: WebIM.config.https, | ||
url: WebIM.config.xmppURL, | url: WebIM.config.xmppURL, | ||
+ | apiUrl: WebIM.config.apiURL, | ||
isAutoLogin: false, | isAutoLogin: false, | ||
heartBeatWait: WebIM.config.heartBeatWait, | heartBeatWait: WebIM.config.heartBeatWait, |