libossia icon indicating copy to clipboard operation
libossia copied to clipboard

notify client when value is updated by another client

Open avilleret opened this issue 8 years ago • 5 comments

currently if two clients are connected to one device and one client send a value to that device, the other client isn't updated

it will be nice to forward value to the second client whenever it is possible

currently it is working with a QML device but not with a Pd one.

to demonstrate the issue, open one device-example.pd and two client-example.pd

avilleret avatar Apr 26 '17 21:04 avilleret

could this be done easily / quickly ? this is something I need soon...

avilleret avatar Jun 15 '17 08:06 avilleret

adding a for-loop here should do the trick : https://github.com/OSSIA/libossia/blob/master/OSSIA/ossia/network/oscquery/oscquery_server.cpp#L248

jcelerier avatar Jun 15 '17 09:06 jcelerier

(same for on_WSMessage)

jcelerier avatar Jun 15 '17 09:06 jcelerier

I tried to do it, for now you have to enable "set_echo(true)" on the oscquery server

jcelerier avatar Aug 01 '17 16:08 jcelerier

with that : https://github.com/OSSIA/libossia/blob/master/OSSIA/ossia-pd/src/device.cpp#L207-L211 it doesn't seems to work. With device-example.pd, client-example.pd and client-example.qml Updating parameter value in device patch send it to both clients. Updating value in one of the clients send it to the device but it is not forwarded to the other client.

avilleret avatar Aug 25 '17 08:08 avilleret