Chat functionality in web application using XMPP and Openfire

后端 未结 1 1335
心在旅途
心在旅途 2021-01-17 01:13

I want to create chat functionality in my web application using XMPP and Openfire.. I have integrated converse js but I haven\'t found file attachment so any one let me know

1条回答
  •  无人共我
    2021-01-17 02:01

    Here is a very simple chat demo written in jQuery + StropheJS:

    http://plnkr.co/edit/EhQHDsYpDhrECmaaIlZO

    You have to deploy your own Openfire and adapt the followin code lines according to your configuration:

    var server = 'mydomain.com';
    var BOSH_SERVICE = 'http://127.0.0.1:7070/http-bind/';
    var ROOM = 'prova@conference.' + server;
    

    ...

    $('#jid').get(0).value = "pippo@mydomain.com";
    $('#pass').get(0).value = "pippo";
    

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题