test_client: log metadata notifications

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-08-30 15:40:56 -04:00
parent 2c5bb4710e
commit 005caba234
1 changed files with 5 additions and 0 deletions

View File

@ -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