Paul
has a simple static web page example - I called it test.html
the only line you should need to mess with is
"ws://"+server+":1880/admin/ws/myapp";
to change the last part to wherever your node red server is...
I changed settings.js so that
httpStatic: '/home/{myid}/node-red/web/',
httpRoot: '/admin',
then put that web page in the web directory
and just use an inject to websocket out node like this - (copy the block below and import it to node-red - ctrl-i - ctrl-v
[{"id":"69ca9946.963568","type":"websocket-listener","path":"/ws/myapp","wholemsg":"false"},{"id":"84f7890.f7b0878","type":"inject","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":183,"y":395,"z":"4e8dadf1.abecb4","wires":[["1d6d02b7.e292fd"]]},{"id":"1d6d02b7.e292fd","type":"websocket out","name":"","server":"69ca9946.963568","x":422,"y":401,"z":"4e8dadf1.abecb4","wires":[]}]
Then I can browse to localhost:1880/test.html
then click the inject and the numeric timestamp should appear on the web page