An Angular PWA From Front-End to Backend: Send/Receive Messages

This is the third part of the series about the AngularPwaMessenger project. It is a chat system with offline capability. The second part showed how the login process for online and offline works.
This part will be about how to send and receive messages. A message can be sent while offline. It is then stored in the indexed DB and sent when the device is online again.