ideoforms / AbletonOSC

Control Ableton Live 11 via Open Sound Control (OSC)
MIT License
429 stars 70 forks source link

Multiple client connections #73

Open zbynekdrlik opened 1 year ago

zbynekdrlik commented 1 year ago

I am implementing touchosc controller for Ableton. First one work excellently, now I am looking way how to connect multiple clients but always when second send some osc message, first one stop receiving registered signals. I see that this is somehow now feature, could it be changed to have multiple connections?

markmarijnissen commented 1 year ago

standard get should work, however the listeners send to the latest connection (https://github.com/ideoforms/AbletonOSC/blob/master/abletonosc/osc_server.py#L102)

A fix should store the remote address when registering a listener and use this when sending OSC messages back (https://github.com/ideoforms/AbletonOSC/blob/master/abletonosc/handler.py#LL51)

zbynekdrlik commented 1 year ago

Great idea. @markmarijnissen are you able implement some patch?

paulmacmillan commented 6 months ago

Could be useful to avoid building middlewares to aggregate and dispatch requests from multiples clients. This is what I'm doing at the moment, and it's a lot of duplicate work.