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://127.0.0.1:8080")

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

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

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.

Cheers!

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