MH2ag
February 11, 2021, 11:41am
1
Is it possible to use realtime data update between 2 NodeJS sites (created in Wappler)?
API with NodeJS (api.domain.de )
Frontend with NodeJS (domain.cloud)
Intro
Realtime Data Updates are here! Thanks to the NodeJS and Socket.IO integration in Wappler now you can build realtime apps!
WebSockets is an advanced technology that makes it possible to open a two-way interactive communication session between the user’s browser and a server. If you want to get updates in real-time, WebSockets allows a persistent connection between your browser and the server.
The server is constantly waiting (listening) for new data/information and whenever received, …
MH2ag
February 11, 2021, 1:43pm
2
If yes what would be the recommended setup?
If I’m correct, it’s possible. Just like when you create a website and a mobile app.
In this case, the only requirement is to use the same database between your two different websites.
MH2ag
February 11, 2021, 4:24pm
4
That would be cool!
I saw that you had already a post about this topic:
Wappler Version : 3.7.0
Operating System : Win 10 Pro
Server Model: NodeJS - Mobile app
Database Type: MariaDB
Hosting Type: Shared
Expected behavior
Socket.io should work with my mobile app
Actual behavior
I see some errors and it’s not working
How to reproduce
I created a web app to get the latests news from a RSS feed and it’s working with the new Live refresh feature (Socket).
I created a mobile app to get the same data and I get the data but the live refreshing feature is not workin…
Did you get it working?
Yes, it’s working correctly by following @George ’s post.
And here as well: Realtime Data Update with NodeJS and WebSockets
1 Like
Teodor
Closed
September 19, 2022, 3:00pm
8
This topic was automatically closed after 3 days. New replies are no longer allowed.