Hello, I have a project in b4j with jserver(websockets) and abmaterial and I am in the need of some publish and subscribe mechanism. Basically I want to: when a client(browser) make a modification (create, remove, update, delete) to something I want that modification to propagate/spread to the other connected clients. Kind of what facebook does when someone hits the like button on a post that like will appear to all other users viewing that post.
What are my options ?
I have thought of creating my own mechanism using a combination of threadsafe maps + list in a module and using a server background worker to process the message queue ...
Is this the right way to go ? Will mqtt work as a publish subscribe in a server with websockets as all clients are from the server ?
What are my options ?
I have thought of creating my own mechanism using a combination of threadsafe maps + list in a module and using a server background worker to process the message queue ...
Is this the right way to go ? Will mqtt work as a publish subscribe in a server with websockets as all clients are from the server ?