custom module: receive() and send() now accept host and port to be provided as a single string argument joined by a colon

This commit is contained in:
jean-emmanuel 2025-01-11 16:41:07 +01:00
parent 857e0408be
commit bdd83657c8
3 changed files with 19 additions and 0 deletions

View file

@ -90,6 +90,8 @@ Send osc/midi message to connected clients. `host` and `port` can be specified t
- `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 retrieved from `app` events or `oscOutFilter`)
For convenience, `host` and `port` can be provided both as single string argument joined with a colon.
----
#### `send(host, port, address, ...args)`