I have a simple HTML page printed out inside a Servlet. Here I have setup firebase admin sdk and have set a value event listener for a path.
When the events fire, I wish
With servlets, your clients won't see any page updates until they send a new request to your application server. What you can do is get your ValueEventListener
to update the state of an in-memory object. Then your servlet can read the latest state of that object whenever constructing the HTML output.