sap.ui.core.ws.WebSocketthat is part of UI5.
To offer some useful tricks and features i blowed up the example with the following features:
- WebSocket based data connectivity
- adding 3rd party notification library (noty)
- JSON stringify and parsing (to be able to use objects inside messages)
The result will look like this
|Chrome and Firefox parallel chat|
Now let us come to the more interesting part, the implementation.