aboutsummaryrefslogtreecommitdiff
path: root/host/frontend/gcastv2/https/content/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'host/frontend/gcastv2/https/content/index.html')
-rw-r--r--host/frontend/gcastv2/https/content/index.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/host/frontend/gcastv2/https/content/index.html b/host/frontend/gcastv2/https/content/index.html
new file mode 100644
index 000000000..081f46a08
--- /dev/null
+++ b/host/frontend/gcastv2/https/content/index.html
@@ -0,0 +1,19 @@
+<script>
+
+var sock = new WebSocket("wss://localhost:8443/control", "protocolOne");
+
+sock.onopen = function(event) {
+ // Close connection after 5 secs.
+ // setTimeout(function() { sock.close(); }, 5000);
+
+ sock.send("Here's some sample text");
+}
+
+sock.onmessage = function(event) {
+ console.log(event.data);
+}
+
+</script>
+
+<h1>Test</h1>
+