Anyone familiar with #EventSource? I have an ASP.NET Core backend which uses an IAsyncEnumerable and TypedResults.ServerSentEvents and it's working fine. But I want to return a 400/404/403 if the provided id is invalid/not existent/restricted. How to distinguish that in the frontend?
developer.mozilla.orgEventSource - Web APIs | MDNThe EventSource interface is web content's interface to server-sent events.
0 reposts4 likes