mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
ed45c77be5
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
17 lines
429 B
HTML
17 lines
429 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/events")
|
|
client.onmessage = function (evt) {
|
|
console.log(evt)
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>Open the browser's console(F12) and watch for incoming event messages</h1>
|
|
</body>
|
|
</html> |