4 ms·
How was the view counter made? It's cool to see it increase in realtime.
by available 9y ago
How was the view counter made?
It's cool to see it increase in realtime.
- STRiDEX 9y agoIt uses Firebase i think
- makepanic 9y agoYes there's an open firebase websocket connection that emits the count. example payload: {"t":"d","d":{"b":{"p":"views/2015-pure-ui","d":514866},"a":"d"}}
- dkris 9y agoIf you are interested here is source code for the blog views. https://github.com/rauchg/blog-views https://github.com/rauchg/blog-views
- available 9y agoThanks! I have actually been looking for some simple examples of ZEIT microservices and this happens to be a very nice one.
- mosselman 9y agoI came here just to compliment the counter. Very cool.