Chat functionality in web application using XMPP and Openfire

岁酱吖の 提交于 2019-12-01 12:56:20

问题


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:


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";


来源:https://stackoverflow.com/questions/34510219/chat-functionality-in-web-application-using-xmpp-and-openfire

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!