【问题标题】:Connecting to Strophe.js in Angular 6在 Angular 6 中连接到 Strophe.js
【发布时间】:2018-12-17 14:52:49
【问题描述】:

我已通过将 Strophe.js 文件放置在资产中来连接到 Strophe.js,并且连接成功。但是在连接到它之后,用户界面就挂了。有没有人可以帮忙

【问题讨论】:

    标签: xmpp angular6 chat strophe.js


    【解决方案1】:

    什么是绞死? Strophe.js 不会阻止该过程。
    我记得像这样连接(不是确切的代码):

    var callback = function(condition){
        // according to condition decide if connected or not
        // and if connected, UI: form login panel to main panel(include friends list and so on) 
    
    }
    Strophe.connection(jid, password, callback);
    

    并且没有理由挂起 UI。您可以使用浏览器调试工具来跟踪您的代码并找出它挂在哪里

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-02-22
      • 1970-01-01
      • 1970-01-01
      • 2013-01-15
      • 2018-10-30
      • 2014-11-04
      • 2018-07-15
      相关资源
      最近更新 更多