using Server-Sent Events when possible