test_client: log metadata notifications
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
2c5bb4710e
commit
005caba234
|
@ -610,6 +610,11 @@ function handle_file_list_changed(file_info) {
|
||||||
}
|
}
|
||||||
json_rpc.register_method("notify_filelist_changed", handle_file_list_changed);
|
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)*****************/
|
//***********End Klipper Event Handlers (JSON-RPC)*****************/
|
||||||
|
|
||||||
// The function below is an example of one way to use JSON-RPC's batch send
|
// The function below is an example of one way to use JSON-RPC's batch send
|
||||||
|
|
Loading…
Reference in New Issue