Real-time Analytics with Socket.IO