Properly send messages as server sent events.