I'm currently working on a project where the infrastructure must look like this:
[Client 1] ----------- [Server] ----------- [Client 2]
Client 1 must activate a button, which would trigger an event on the server. Then, client 2 must listen for that specific event to show the value.
For instance, Client 1 would be a tablet, with a simple button that would have an ID of 1, let's say.
I have to be able to show on Client 2, let's assume a TV plugged on a linux (Raspberry Pi) machine, that button ID 1 was pressed on the tablet.
How would you implement that architecture, using only HTML for the display of Client 1 and 2, javascript for communicating between server and clients and NodeJS as a server core?
Any idea will be welcome, I tried to implement it but my logic failed me at some point! :)