removed leftover merge text
[henge/kiak.git] / remote-server.html
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Strapp.io Host</title>
5 <script type="text/javascript">
6 document.body = document.createElement('body')
7 const strappDiv = document.createElement('div')
8 document.body.appendChild(strappDiv)
9 strappDiv.innerHTML = "Connection Dead"
10 if ("WebSocket" in window) {
11 const wsock = new WebSocket("wss://$HOST:$PORT")
12 wsock.onopen = () => {
13 wsock.send("Test message")
14 strappDiv.innerHTML = "Sent test"
15 }
16 wsock.onmessage = (evt) => {
17 strappDiv.innerHTML = "Got Response <br/>" + evt.data
18 }
19 } else {
20 strappDiv.innerHTML = "Your browser does not support Strapp"
21 }
22 </script>
23 </head>
24 </html>