Seeking HA web socket api tutorial

Hello,

I am looking to create my own dashboard to show the state of various sensors on wall mounted panels (older iPads). What I think would work nicely is to subscribe to HA’s event bus using the existing web socket api. Once subscribed i’d like to hand off the received object to angularjs and then use angularjs expressions to create the dashboard. I’ve got the example provided here up and running. What I cannot wrap my head around is how to hand off the entities object to angularjs for further processing. If anyone has any pointers or is aware of a tutorial or more examples of how to work with HA’s web socket api I would hugely appreciate it. So far I have come up empty.

Thanks,

Baobab