I am adding a very basic working example of sending push notifications to all connected clients using WebSocket.
Here is the details:
1. Added support to show push notifications over every screen of an example application using WebSocket when any example created or updated.
2. As Its an example, so for now push notifications will only for example creation and updation using SECA's.
3. Push notification will be shown on screen for 5 seconds only, we can close it before 5 seconds using close button if needed.
The UI of notification pop-up can be changed. I kept it simple (No fancy work) to just demonstrate the WebSocket usage.
Please find attached patch for it.
To see it in action, Please follow the steps given in
OFBIZ-7073 and apply patch given here.