You can certainly use Lightstreamer Server to feed the pages seen by your users with the real-time information on the activity of the clients.
I see that you store messages coming from the clients on a Database; the best way to forward these messages to the user pages should be letting the messages reach your Data Adapter directly, on a parallel route. Then, if you need to provide the user page with the cumulated state of a client (the snapshot, in Lightstreamer terms), your Data Adapter can still inquiry the Database.
In order to track the activity of the users to keep the managers informed, you can leverage Lightstreamer itself. In fact, as the user pages open push sessions towards Lightstreamer Server, the Metadata Adapter will receives notifications on the activity of the various sessions and your implementation can forward this information to the Data Adapter and the Database as well. This is done (in an oversimplified way) by our
Chat Demo.
Note that Lightstreamer is conceived as a source of real-time data for the web pages, but in order to supply the web pages we suggest using an external Web Server (see the typical architecture in the first part of the
JavaScript client guide).
Lightstreamer Server also offers basic Web Server functionalities, but we only leverage them for our demos.