再比如使用require方式引入strophe 包Base64未定义,真是头大.后来功夫不负有心人,终于让我变查资料,边摸索,终于解决了所有问题,用户能够上线了. require('strophe.js').Strophe; var meStrophe = require('strophe.js'); $iq = meStrophe. $pres; 如图 在strophe.js中 setJid: function (jid) { this.jid = jid; this.authzid = Strophe.getBareJidFromJid return this.jid; }, 如图: 在strophe.js的2896行处添加二个方法,即Strophe.Connection.prototype中 在SDK的配置文件中 /strophe.js 报此错修改 webim.config.js npm run dev 访问 http://localhost:8080/#/chat?
/lib/webIM-SDK/strophe-1.2.8.js"></script> <script src="..
数据存储API:Cassandra和ZooKeeper Memcache API:memcached 任务队列API:RabbitMQ和Celery XMPP API:ejabberd 频道API:strophe.js