Open digitalshow opened 4 years ago
I see what you mean. I'll work through some ideas and let you know.
I'm thinking I'll go with something like your example.
@client = OSC::Client.new('10.1.2.3', 1234)
@server = OSC::EMServer.from_socket(@client.socket)
@server.run
I just need to think up a way to support the new factory methods I want that also doesn't mess up the simple EMServer initializer signature.
I'm still slowly working on this when I get free time. I'm coming up with a test harness for this and having to learn super collider so I can confidently say if my changes work or not.
I have the following application scheme: There is a OSC UDP server that has some properties. I connect to it and can subscribe to property changes by sending to "/xremote" periodically. The server will then send me updates on properties to the port I sent the subscription message from. So I need to receive from the same socket as I use for sending.
I use the following workaround:
It would be nice to have the possibility without a hack.