差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 | 后一修订版 两侧同时换到之后的修订记录 | ||
im:web:intro:basic [2020/07/02 03:14] zhangdong [创建连接] |
im:web:intro:basic [2020/09/17 12:55] zhangdong [创建连接] |
||
---|---|---|---|
行 4: | 行 4: | ||
<code javascript> | <code javascript> | ||
- | var conn = {}; | + | let conn = {}; |
WebIM.config = config; | WebIM.config = config; | ||
- | conn = WebIM.conn = new WebIM.default.connection({ | + | conn = WebIM.conn = new WebIM.connection({ |
appKey: WebIM.config.appkey, | appKey: WebIM.config.appkey, | ||
isHttpDNS: WebIM.config.isHttpDNS, | isHttpDNS: WebIM.config.isHttpDNS, |