B4J Question Continuously receive data from website?

AmenO123

Member
Licensed User
Longtime User
I'm trying to receive push messages from the server to the b4j.

I got no luck with firebase so i make a html web that receive the push, but i don't know how to open it with b4j and continuously receive data from it.

With httputils2 i can read the web but to do like i want i should use a timer and set it in 1 seg that will overload the server.
 

DonManfred

Expert
Licensed User
Longtime User
A good alternative is to switch to MQTT.

Setup a MQTT Broker in your Serverapp and connect your Clients using an MQTT-Client.

Also check this tutorial
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can also use WebSockets for this.

 
Upvote 0

AmenO123

Member
Licensed User
Longtime User
A good alternative is to switch to MQTT.

Setup a MQTT Broker in your Serverapp and connect your Clients using an MQTT-Client.

Also check this tutorial

thank you! I really apreciate your reply. I will try with this one.

You can also use WebSockets for this.


Does it works on b4i instead of b4a?
 
Upvote 0
Top