Chat functionality in web application using XMPP a

2020-03-31 06:36发布

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 another best option using XMPP and openfire??

1条回答
Lonely孤独者°
2楼-- · 2020-03-31 07:19

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";
查看更多
登录 后发表回答