From cfcf04b8a754382ea08f0e9a118c75e3d9a3406d Mon Sep 17 00:00:00 2001 From: Mees van der Wijk Date: Thu, 21 Aug 2025 22:03:38 +0200 Subject: [PATCH] Updated documentation on property updates --- ModuleClientAPI.md | 2 +- ModuleServerAPI.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ModuleClientAPI.md b/ModuleClientAPI.md index 3f718ce..6275c2b 100644 --- a/ModuleClientAPI.md +++ b/ModuleClientAPI.md @@ -58,7 +58,7 @@ api.finishClientCondition(conditionId); ### onPropertyUpdate -Register a listener for when a property updates in a scene change. +Register a listener for when a property updates in a scene change. The listener will also be called on initial module creation. ```javascript api.onPropertyUpdate(propertyId, callback); diff --git a/ModuleServerAPI.md b/ModuleServerAPI.md index 1de3165..f5fbf2f 100644 --- a/ModuleServerAPI.md +++ b/ModuleServerAPI.md @@ -274,7 +274,7 @@ api.onNewClient(callback); ### onModulePropertyUpdate -Register a listener for when a module property updates. +Register a listener for when a module property updates. The listener will also be triggered on initial module creation and when the server starts up. ```javascript api.onModulePropertyUpdate(propertyId, callback);