--- /dev/null
+const body = document.createElement('body')
+const root = document.createElement('div')
+document.title = "Strapp.io Host"
+if ("WebSocket" in window) {
+ const wsock = new WebSocket("wss://" + _strapp_host + ":" + _strapp_port)
+ wsock.onopen = () => {
+ console.log("Strapped to wss://" + _strapp_host + ":" + _strapp_port)
+ }
+ wsock.onmessage = (evt) => {
+ console.log("Incoming connection from " + evt.data)
+ console.log("TODO: Open a socket to this client")
+ }
+} else {
+ root.appendChild(document.createTextNode("Your browser does not support Strapp"))
+}
+body.appendChild(root)
+document.body = body