diff --git a/resources/docs/docs/remote-control.md b/resources/docs/docs/remote-control.md index d1d12699..d2859a85 100644 --- a/resources/docs/docs/remote-control.md +++ b/resources/docs/docs/remote-control.md @@ -123,6 +123,12 @@ Sends a notification message to the client. ---- +#### `/LOG message` + +Print message in the client's console. + +---- + #### `/SET id value` Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value. diff --git a/src/client/remote-control.js b/src/client/remote-control.js index f4aab709..42b9e7b1 100644 --- a/src/client/remote-control.js +++ b/src/client/remote-control.js @@ -245,6 +245,11 @@ var callbacks = { message: args.join('\n') || ' ' }) + }, + '/LOG': function(args) { + + console.log(args) + }, '/SESSION/OPEN': function(args) {