Tweaked controller to give each SSE message an index-based event name