iris/_examples/http_responsewriter/server-side-events/optional.sse.js.html
Gerasimos (Makis) Maropoulos d98da25ffb add a README note about the known issues for Go inside code editors/IDEs
Former-commit-id: a4be78e746f5675291bab5a1b3e62eaf42cbd98c
2018-08-02 01:58:46 +03:00

17 lines
422 B
HTML

<!-- you can just put that to your favourite browser -->
<html>
<head>
<title>SSE (javascript side)</title>
<script type="text/javascript">
var client = new EventSource("http://localhost:8080")
client.onmessage = function (msg) {
console.log(msg)
}
</script>
</head>
<body>
<h1>Open the browser's console(F12) and watch for incoming event messages</h1>
</body>
</html>