http > osc example config

This commit is contained in:
Joel Wetzell
2025-11-22 15:28:35 -06:00
parent f449505559
commit b81cb69873

View File

@@ -1,11 +1,10 @@
{ {
"modules": [ "modules": [
{ {
"id": "tcp", "id": "http",
"type": "net.tcp.server", "type": "net.http.server",
"params": { "params": {
"port": 8000, "port": 3000
"framing": "LF"
} }
}, },
{ {
@@ -13,13 +12,24 @@
"type": "net.udp.client", "type": "net.udp.client",
"params": { "params": {
"host": "127.0.0.1", "host": "127.0.0.1",
"port": 8888 "port": 8000
} }
} }
], ],
"routes": [ "routes": [
{ {
"input": "tcp", "input": "http",
"processors": [
{
"type":"osc.message.create",
"params": {
"address": "{{.URL.Path}}"
}
},
{
"type": "osc.message.encode"
}
],
"output": "udp" "output": "udp"
} }
] ]