File transfer using strophe library - xmpp

How the files can be transferred between users in a chat using strophe library in XMPP

Related

How to make voice/video call in pidgin (XMPP)?

I'm using ejabberd as my XMPP server and Pidgin as my client.
My ejabberd version is 22.05 and my Pidgin version is 2.14.10
I have configured my ejabberd server for making voice/video call by following this article.
Now what should I do to make voice/video call through pidgin? I didn't see any plugins for enabling voice/video chat in pidgin.
As at today (7/11/2022), the pidgin website says that the voice and video calls support is still under development. Check this link: https://pidgin.im/development/voice-and-video/
I only know Gajim Client and Conversations Client does support voice and video calls.

How to send data from an electron app using a socket to a flask app on heroku

I want to send data from my electron app using socket.io to a website I created using flask and hosted on heroku. I want to know how to send data to an external website using socket.io.

How to connect & run Strophe JS files with Openfire Server?

I have installed Openfire successfully & enabled HTTP Binding at port 7070. I have downloaded strophe.js library https://github.com/strophe/strophejs & want to run its examples, but I don't know how to connect this two. Where should I place my strophe.js files, so that it runs from Openfire server, and I even want to know how to run NodeJS code after installing NodeJS plugins in Openfire.

Send data from server to a client (Raspberry Pi) without pull request

I have a Raspberry Pi and I am developing an application on the Pi that can be controlled by a web portal.
So I need to know, if I change something in my website, how will that be transferred to my Pi which is a client without any pull request from the client.
One solution could be to install Apache on your Raspberry and setup a basic http PHP or Python API. When a change is posted on the website, the back-end script makes a API call to the Raspberry API service.
If you are using PHP as your web server, you could use json_decode(file_get_contents(...) to access the Raspberry API.
I'll suggest you to use Websockets.
Websockets are bidirectional and client and server can communicate whenever they want as TCP session is ongoing. So, yo will not need to do polling.
You can download and compile libwebsockets for your raspberry as server or as I did in one of my previous projects, you can install nodejs into the raspberry and use socket.io library to handle all. Of course, you will need to do some modifications in your web page to behave like websocket client or socket.io client.
Good luck!

Does ijab chat only work with Apache server?

The question is about ijab (facebook, gmail style chat bar) chat.
I have seen this tutorial for configuring ijab with Openfire XMPP server
but not able to connect it with Openfire server.
In the tutorial ijab is being used with Apache webserver but I am using Tomcat with urlrewritefilter for redirecting my request to Openfire server.
Does ijab chat only work with Apache server?
Is there any way of using ijab chat with other web servers like Tomcat, Weblogic, jboss etc?
I think It will only work in Apache since it requires mode_rewrite configuration.