docs: custom module send/receive

This commit is contained in:
bordun 2021-02-06 15:50:11 +01:00
parent a2f1f94250
commit 1322a1ab3c

View file

@ -73,14 +73,14 @@ Send osc/midi message to connected clients. `host` and `port` can be specified t
- `host` (optional): `string` ip address, valid hostname or `"midi"`
- `port` (optional): `integer` port number or `string` midi device name
- `address`: osc address
- `args`: value or `{type: "OSC_TYPE_LETTER", value: VALUE}` `object`
- `args`: value or `{type: "OSC_TYPE_LETTER", value: VALUE}` `object` (objects that don't match this format will simply be turned to a JSON string).
- `options` (optional): set to `{clientId: id}` to define which client receives the message (where `id` is the client's id as retreived from `app` events or `oscOutFilter`)
----
#### `send(host, port, address, ...args)`
Send osc/midi to a target.
Send osc/midi to a target (see `receive()`).
----