Possible to send OSC args via CLI or websocket?

Is it possible to connect to OSC via a WebSocket or CLI and send commands? I'd imagine OSC would listen to the message from the oscInFilter()?

Something like:

const ws = new WebSocket("ws://")

// send a message to the server
ws.send({ address, args, host, port })

// console.log the message received from the server
ws.onmessage = (event) => {

I have some custom search engine apps, which can run commands. I wondered if I could write custom scripts to send to OSC to harness OSC's engine/midi methods.


You won't be able to see messages sent via websocket in the oscInFilter function, but you should be able to create your own websocket client in the custom module and make things work. Just use a different port to avoid messing with the server-client websocket :wink:

1 Like