I have an application that consists of three parts: a Python server application, a web front end that is connected to the Python tool via WebSocket, and a second website that is connected to the first website via local storage. The first page transfers its status via local storage to the second page, which then switches accordingly.
Since i want to run this pages on two screens in kiosk mode and this only seems to work if you use different browsers or different profiles in chrome, i want to search for an alternative of local.Storage to get the same result.
The local storage approach was just the first thing that came into my mind and since its just a local application i did not bother about security. Also the nice thing about it is that with jquery the event is triggered with every change of the storage.
status.js (Website 1)
function setStatus(status) {
localStorage.setItem("status", status);
}
toggle.js (website 2)
$( document ).ready(function() {
var showslide = localStorage.status;
toggleSlide(showslide);
});
$( window ).on('storage',function(){
var showslide = localStorage.status;
toggleSlide(showslide);
});
function toggleSlide(showslide) {
//toggle part with animations/fade
}
This works very well and was easy. Is there a simple alternative that yould be used by two different browsers? Would be the existing websocket connection the right way?