XMPP file transfer using Strophe library

后端 未结 3 580
清酒与你
清酒与你 2021-01-19 16:25

Can anyone let me know the implementation of file transfer in XMPP using strophe library

3条回答
  •  不要未来只要你来
    2021-01-19 16:36

    theres a strophe si-filetransfer plugin available. You will have to study the code and add the handler along the lines of:

    connection.si_filetransfer.(addhandler);
    

    Then use it with :

       connection.si_filetransfer.send(to, sid, filename, size, mime, cb);
    

    I tried it out earlier, but was unsuccessful as it killed my strophe connection for some reason. Maybe you have better luck =)

提交回复
热议问题