custom module: receive() not passing boolean arguments properly

This commit is contained in:
jean-emmanuel 2023-08-30 13:13:29 +02:00
parent f2f1949053
commit 90b34d7475
2 changed files with 9 additions and 4 deletions

View file

@ -74,11 +74,11 @@ class OscServer {
case 'number':
return {type: 'f', value: arg}
case 'boolean':
return {type: arg ? 'T' : 'F'}
return {type: arg ? 'T' : 'F', value: arg}
case 'string':
return {type: 's', value:arg}
return {type: 's', value: arg}
default:
return {type: 's', value:JSON.stringify(arg)}
return {type: 's', value: JSON.stringify(arg)}
}
}