This demo shows two ways of implementing a Web Instant Messaging application:
Using long polling.
Both of them save data in memory by default so everything will be lost every time the application restarts, but you can change this setting in
conf/app.conf to enable a database adapter for data persistence.
Here is the project structure: