Get reports through to the browser.

This commit is contained in:
Ian Gulliver
2016-05-05 00:33:30 +00:00
parent 5f19a48872
commit 6f0b747283
3 changed files with 23 additions and 3 deletions

9
server/static/control.js Normal file
View File

@@ -0,0 +1,9 @@
"use strict";
document.addEventListener('DOMContentLoaded', (e) => {
let ws = new WebSocket('wss://' + location.host + '/ws/master', 'iconograph-master');
ws.addEventListener('message', (e) => {
let parsed = JSON.parse(e.data);
console.log(parsed);
});
});

View File

@@ -1 +1,7 @@
test
<html>
<head>
<script src="/static/control.js"></script>
</head>
<body>
</body>
</html>