This example can be used to output a standardised web page template. I've used Zurb Foundation to provide the structure.
It also shows how to use both raw websockets and MQTT over websockets (via the Paho library) to send/receive live data between the web page and Node-Red.
There are a number of dependencies, flows, subflows and files so I've put all the code on Github rather than here.
https://github.com/TotallyInformation/node-red-example-liveupdates