<!doctype html>
<head>
  <title>Hello</title>
</head>
<h1>Testing</h1>

<div id="output"></div>

<script>
  var output = document.getElementById("output");

  var src = new EventSource("/es");

  src.onmessage = function(msg) {
    var p = document.createElement("p");
    p.appendChild(document.createTextNode(msg.data));
    output.appendChild(p);
  }
</script>

<!doctype html>
<head>
  <title>Hello</title>
</head>
<h1>Testing</h1>

<div id="output"></div>

<script>
  var output = document.getElementById("output");

  var src = new EventSource("/eschan");

  src.onmessage = function(msg) {
    var p = document.createElement("p");
    p.appendChild(document.createTextNode(msg.data));
    output.appendChild(p);
  }
</script>

Change the source of ES from /es to /eschan
Change the source of ES from /es to /eschan
