Complete example of Strophe.js file transfer [closed]

。_饼干妹妹 提交于 2019-11-27 21:44:53

Here below is a very simple chat demo written using jQuery and StropheJS with file transfer features. Implementation of file transfer is based on these two Strophe.js plugins:

In addition, in order to allow the transfer of files greater than 65535 bytes it is also used a chunking algorithm.

Here is the Plunker: http://plnkr.co/edit/fYpXo1mFRWPxrLlgr123

P.S.: you have to deploy your own XMPP server and adapt the following code lines according to your configuration:

var server = 'mydomain.com';
var BOSH_SERVICE = 'http://127.0.0.1:7070/http-bind/';
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!