From 1755f0125e097e6abcd3327b2d3e06586718d8aa Mon Sep 17 00:00:00 2001 From: afornerot Date: Mon, 23 Nov 2020 13:08:15 +0100 Subject: [PATCH] websocket --- .../src/Controller/WebsocketController.php | 13 ++++ .../templates/Websocket/sample.html.twig | 61 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 src/ninesurvey-1.0/src/Controller/WebsocketController.php create mode 100644 src/ninesurvey-1.0/templates/Websocket/sample.html.twig diff --git a/src/ninesurvey-1.0/src/Controller/WebsocketController.php b/src/ninesurvey-1.0/src/Controller/WebsocketController.php new file mode 100644 index 0000000..a53dac2 --- /dev/null +++ b/src/ninesurvey-1.0/src/Controller/WebsocketController.php @@ -0,0 +1,13 @@ +render('Websocket/sample.html.twig'); + } +} diff --git a/src/ninesurvey-1.0/templates/Websocket/sample.html.twig b/src/ninesurvey-1.0/templates/Websocket/sample.html.twig new file mode 100644 index 0000000..a74146d --- /dev/null +++ b/src/ninesurvey-1.0/templates/Websocket/sample.html.twig @@ -0,0 +1,61 @@ +
+
online
+
+
+ +{% if wssuse %} + +{% endif %} \ No newline at end of file