Gist 1074953
✓ Published0🌍 Public
Aalessioalex
Last edited Jul 10, 2011
Created on Jul 10, 2011
This example demonstrates server-side request benchmarking and logging through real-time socket events. The code uses the `GO.aop` aspect-oriented programming module to intercept controller execution, measuring rendering time with the `GO.time` vendor library. Each HTTP request triggers two socket emissions: one reports the page render duration via a benchmark message, while the other logs Apache-style visit details including the URL and user-agent. Data is transmitted through `GO.Socket.emit` with timestamps and unique identifiers generated by `GO.utils.uid`.
AI-generated description