Live updates from .NET 10 to Angular

with Server-Sent Events

SERVER
.NET 10
TypedResults
.ServerSentEvents
TEXT/EVENT-STREAM
id: 3 data: {"percent":30}
id: 4 data: {"percent":40}
connection cut
GET Last-Event-ID: 4
id: 5 data: {"percent":50}
id: 6 data: {"percent":60}
BROWSER
Angular
EventSource
→ signal
THE CATCH EventSource sends no Authorization header. Settle auth first.
.NET 10 · Angular 22 · the browser reconnects, the endpoint resumes from the id
gdhami.net