Is the HTML5 server initiated API (SSE) just limited to event-based APIs on top of HTML5 WebSockets?
It seems to me that EventSource is just a WebSocket , which:
- Impossible
.send() data - Uses the
text/event-stream format - Creates dynamically called (server-defined) events instead of
onmessage
The idea that the web server is pushing events to client devices is very intriguing. Does this API have any traction?
I assume that the async event model will work beautifully when paired with Node, but will not see many use cases for this in my ASP.NET world.
javascript html5 websocket server-sent-events
user979672
source share