docs: comment osc functions

This commit is contained in:
cv
2021-06-10 23:39:48 +02:00
parent 30c6592767
commit 2612ea7621
+8
View File
@@ -88,10 +88,18 @@ export class EventTimer extends Timer {
this.updateOSCClient(oscClient);
}
/**
* @description Updates the osc client used in the object
* @param {object} oscClient
*/
updateOSCClient(oscClient) {
this.oscClient = oscClient;
}
/**
* @description Sends osc value from predefined messages
* @param {string} event - message to be sent
*/
sendOSC(event) {
if (this.oscClient == null) return;