I simply don’t know how to do it.
I have an html linked with a knew url, with two buttons.
imagine that url is only shared with two persons/users.
each person have to push the button signed their name.
I tried using request, but I couldn’t figure out how to know if more than one user is active in that view.
The another point is:
One person reach the url first, how to make an “refresh” in their browser, when the second one appear?
You’d have to store who’s at what view in some model.
Then remember to modify this model every time a logged in user views a page; middleware sounds perfect for this.
Then to refresh their page, you’d need to set some kind of communication between the server and the browser which pings this model and refreshes if it detects some change.
I’m sure that should get some ideas flowing.