From a15fb4e28e8b9a47c59b03d41fd08bfce9b3699d Mon Sep 17 00:00:00 2001 From: Jessie Murray Date: Sat, 17 Jul 2021 14:47:15 -0700 Subject: [PATCH] Modernize websocket.html web page * Use pure.css for a basic grid * Detect disconnections, update UI accordingly * Make GET/SET commands configurable and interactive * Add button to clear logs * Test with current branch --- tests/websocket.html | 295 ++++++++++++++++++++++++++----------------- 1 file changed, 180 insertions(+), 115 deletions(-) diff --git a/tests/websocket.html b/tests/websocket.html index a30f936..049ff00 100644 --- a/tests/websocket.html +++ b/tests/websocket.html @@ -3,150 +3,215 @@ WebSocket example + + -
Webdis with HTML5 WebSockets
- -
-

JSON

-
- Connecting... +
+

Webdis with HTML5 WebSockets

+
+ +
+
+
+

JSON

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
+
+
+
+
+
+ +
+
 
+
+
+
+
-
-
-

Raw

-
- Connecting... + + +
+ +
+

Raw

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
+
+
+
+
+
+ +
+
 
+
+
+
+
-
+
+ -