There are many ways to write it with different libraries and different languages, but the main goal is to stick to the browser limitation. If you want two way communication between the browser and the server you have to use websockets. You can find more information about it on the first article.
Unfortunately, you can't use Java for the frontend. You can change React to any other frontend or just a vanilla js. You can definetly replace Java with node.js for the websockets. I am not a big Java expert but a quick google brought this: github.com/TooTallNate/Java-WebSocket
Thanks. But I have some questions.
Thanks
Hi Toan1606, Thank you for asking.
There are many ways to write it with different libraries and different languages, but the main goal is to stick to the browser limitation. If you want two way communication between the browser and the server you have to use websockets. You can find more information about it on the first article.
Unfortunately, you can't use Java for the frontend. You can change React to any other frontend or just a vanilla js. You can definetly replace Java with node.js for the websockets. I am not a big Java expert but a quick google brought this:
github.com/TooTallNate/Java-WebSocket
Thanks. I will learn React and using my next project.