Rename /api/history to /api/event, listen to events on the client