The contract in this case receives messages from the front end. Every time it receives a message the contract emits an event. This DAPP is listening to the events and as they are received they are displayed in the list.