aboutsummaryrefslogtreecommitdiffstats
path: root/pysite
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-13 10:45:57 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-13 10:45:57 +0000
commitcf999735856504fee0bfe74d9b66e764b71ae746 (patch)
treedd08cb6cc372b750732099e42e7f9b9b557d2b28 /pysite
parentfix typo (diff)
Websocket echo test
Diffstat (limited to 'pysite')
-rw-r--r--pysite/views/main/ws_test.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pysite/views/main/ws_test.py b/pysite/views/main/ws_test.py
new file mode 100644
index 00000000..c28269a8
--- /dev/null
+++ b/pysite/views/main/ws_test.py
@@ -0,0 +1,15 @@
+# coding=utf-8
+import os
+
+from pysite.base_route import RouteView
+
+
+class WSTest(RouteView):
+ path = "/ws_test"
+ name = "ws_test"
+
+ def get(self):
+ return self.render(
+ "ws_test.html",
+ server_name=os.environ.get("SERVER_NAME", "localhost")
+ )