I'm having trouble with Fiddler on pages using server-sent events. The eventsource just stays in a pending status if Fiddler captures the request. I don't need to inspect the events in Fiddler, but I would like to be able to inspect the other requests in Fiddler without breaking the page.
While Fiddler is capturing sessions:
- Run a server side event server such as https://github.com/hemanth/sse-now
- Open a page that connects to the server (below)
Result: Events are not received
Following the same steps while Fiddler is not capturing sessions, everything works as expected. Enabling streaming does not solve the issue.
Is this a bug in Fiddler or is there some way I configure Fiddler to handle this?
Example testSSE.html
<!DOCTYPE html>
<
html
>
<
head
>
<
meta
charset
=
"utf-8"
>
<
meta
name
=
"viewport"
content
=
"width=device-width"
>
<
title
>SSE demo</
title
>
</
head
>
<
body
>
</
body
>
<
script
>
var source = new EventSource('http://localhost:8000');
source.onmessage = function(e) {
document.body.innerHTML += e.data + '<
br
>';
};
</
script
>
</
html
>