diff --git a/tests/websocket.html b/tests/websocket.html index 6ce1962..3743c64 100644 --- a/tests/websocket.html +++ b/tests/websocket.html @@ -101,6 +101,16 @@

$TITLE

+
+
+
+
 
+
+
+
+
+
+
@@ -190,6 +200,12 @@

$TITLE

this.send(serialized); }); + $(`${this.type}-btn-hgetall`).addEventListener('click', event => { + event.preventDefault(); + const serialized = this.serializer(['HGETALL', $(`${this.type}-hgetall-key`).value]); + this.send(serialized); + }); + $(`${this.type}-btn-pub`).addEventListener('click', event => { event.preventDefault(); const serialized = this.serializer(['PUBLISH', $(`${this.type}-pub-channel`).value, $(`${this.type}-pub-message`).value]); @@ -236,6 +252,8 @@

$TITLE

$(`${this.type}-btn-set`).disabled = !connected || this.subscribed; $(`${this.type}-get-key`).disabled = !connected || this.subscribed; $(`${this.type}-btn-get`).disabled = !connected || this.subscribed; + $(`${this.type}-btn-hgetall`).disabled = !connected || this.subscribed; + $(`${this.type}-hgetall-key`).disabled = !connected || this.subscribed; $(`${this.type}-pub-channel`).disabled = !connected || this.subscribed; $(`${this.type}-pub-message`).disabled = !connected || this.subscribed; $(`${this.type}-btn-pub`).disabled = !connected || this.subscribed; diff --git a/webdis.json b/webdis.json index 923c3b9..5f46332 100644 --- a/webdis.json +++ b/webdis.json @@ -10,7 +10,7 @@ "pool_size": 20, "daemonize": false, - "websockets": false, + "websockets": true, "database": 0,