I don't mean this one to be a self-promotional comment - I wrote something similar last weekend:
Building real time web apps with AngularJS, NodeJS and MongoDB -
http://www.anupshinde.com/posts/livebase-realtime-webapps-an...
Seems like it's a simple JS API to a server component that manages subscriptions to fanout exchanges.