# Server Sent Events

**URL:** <https://discourse.mitmproxy.org/t/server-sent-events/1496>\
**Category:** help\
**Created:** [April 5, 2019, 9:57am UTC](https://discourse.mitmproxy.org/t/server-sent-events/1496 "2019-04-05T09:57:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ingoogni](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/ingoogni/32/415_2.png) [@ingoogni](https://discourse.mitmproxy.org/u/ingoogni)\
**Post date:** [April 5, 2019, 9:57am UTC](https://discourse.mitmproxy.org/t/server-sent-events/1496/1 "2019-04-05T09:57:18Z")

</div>

First attempt at using default mitmproxy with my local site failed, SSE seems not to come through. Is there something I should set somewhere?

This testpage should show updates on wikipedia articles, but is just waiting for connection.

```auto
<!DOCTYPE html>
<html>
  <head>
    <title>SSE test</title>
  </head>
  <body>
    <h1>Stream</h1>
    <div id="stream"></div>
    <script>
      var source = new EventSource('https://stream.wikimedia.org/v2/stream/recentchange');
      source.onmessage = function(event) {
        document.getElementById("stream").innerHTML += event.data + "<br>";
      };
    </script>
  </body>
</html>

```
