aboutsummaryrefslogtreecommitdiffstats
path: root/templates/main/ws_test.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/main/ws_test.html')
-rw-r--r--templates/main/ws_test.html26
1 files changed, 0 insertions, 26 deletions
diff --git a/templates/main/ws_test.html b/templates/main/ws_test.html
deleted file mode 100644
index 64a7dfc4..00000000
--- a/templates/main/ws_test.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{% extends "main/base.html" %}
-{% block title %}WS Test{% endblock %}
-{% block og_title %}WS Test{% endblock %}
-{% block og_description %}A test page for our Websockets implementation{% endblock %}
-{% block content %}
- <div class="uk-container uk-section">
- <h1>Open your JS console to test</h1>
-
- <script type="application/javascript">
- let ws = new WebSocket("wss://api.{{ server_name }}/ws/echo");
-
- ws.onopen = function(event) {
- console.log("WS opened! Use send() to send a message.");
- };
-
- ws.onmessage = function (event) {
- console.log("<- " + event.data);
- };
-
- function send(text) {
- console.log("-> " + text);
- ws.send(text);
- }
- </script>
- </div>
-{% endblock %}