Hi guys, may I ask about is there any way to make changes to an already open web page (new tab or window), from another page (different tab/window)?
I am doing a prototype for restaurant pos system, which I want to show customer view and cashier view at the same time on different screen (dual screen), and the changes in cashier view will affect customer view instantly.
Or is there other way to achieve my objective?
Some people are telling me about web socket, so I try to search for web socket in wix, but I did not find what I want.
Hi,
Wix code does not feature a built-in socket control.
However, it is possible to import a third party library to handle a socket connection.
A much easier to implement solution is to use setInterval() to fire a refresh function every few seconds.
Note that the amount of requests per minute your site can do is limited by a reasonable usage quota.
For example, if you set up 10 PoS systems, and poll your site database every 500 ms you will do 1200 requests per minute in total, which would scale rapidly if you add more PoS stations.
As an alternative, consider using a third party push service such as Pusher.com
This will allow you to send the data from your backend to this service and poll it according to your needs.
See more information b elow
EDIT: Added a note about the quota and a proposed alternative
Hi, Ido, are you sure that Pusher works in WIX? I included node-module in my project but the Pusher object doesn’t have trigger function to create events or connection to waint events…could you help me? Thanks Br