The Pitfalls of EventSource over HTTP/1.1

added by DotNetKicks
12/4/2019 4:19:17 PM

526 Views

While there are many different ways for servers to stream data to clients, the Server-sent Events / EventSource Interface is one of the simplest. Your code simply creates an EventSource and then subscribes to its onmessage callback: Implementing the server side is almost as simple: your handler just prefaces each piece of data it wants...


0 comments