From 005caba2341fa9f7a316d49efe28a4613d127530 Mon Sep 17 00:00:00 2001 From: Arksine Date: Sun, 30 Aug 2020 15:40:56 -0400 Subject: [PATCH] test_client: log metadata notifications Signed-off-by: Eric Callahan --- test/client/js/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/client/js/main.js b/test/client/js/main.js index ae16d86..e9c4e73 100644 --- a/test/client/js/main.js +++ b/test/client/js/main.js @@ -610,6 +610,11 @@ function handle_file_list_changed(file_info) { } json_rpc.register_method("notify_filelist_changed", handle_file_list_changed); +function handle_metadata_update(metadata) { + console.log(metadata); +} +json_rpc.register_method("notify_metadata_update", handle_metadata_update); + //***********End Klipper Event Handlers (JSON-RPC)*****************/ // The function below is an example of one way to use JSON-RPC's batch send