cabbage-react 1.0.46 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,14 +34,14 @@ Get properties for a widget from the backend. This hook:
|
|
|
34
34
|
Get messages from the backend. This hook:
|
|
35
35
|
|
|
36
36
|
- Automatically updates local state when a message is received
|
|
37
|
-
- Expects a serialized JSON object (sent as a string) with a `
|
|
37
|
+
- Expects a serialized JSON object (sent as a string) with a `type` property
|
|
38
38
|
|
|
39
39
|
#### Example: sending a message from Csound
|
|
40
40
|
|
|
41
41
|
```csd
|
|
42
42
|
jsonData:S = sprintf({{
|
|
43
43
|
{
|
|
44
|
-
"
|
|
44
|
+
"type":"NoteData",
|
|
45
45
|
"noteCount":%f,
|
|
46
46
|
"note":%f,
|
|
47
47
|
"noteLength":%f,
|