colinbdclark / osc.js

An Open Sound Control (OSC) library for JavaScript that works in both the browser and Node.js
GNU General Public License v2.0
774 stars 117 forks source link

Example for Queires Support #175

Closed xavier7179 closed 2 years ago

xavier7179 commented 4 years ago

I noticed that there are no mentions at all about how to menage queries (so that the send comes with some answer, which is a super useful feature). Is there any example or the packaged does not support queries?

colinbdclark commented 3 years ago

Hi @xavier7179, sorry, somehow I missed this question when you posted it back in October. It's been a busy time!

The OSC specification doesn't, itself, have any formal concept of queries. There's no reason you couldn't implement a query system—either one of the ones people have proposed over the years or your own implementation—on top of osc.js. However, my aim with osc.js is to maintain a fully spec-compliant, low-level, simple, OSC implementation that others can build on top of, so I haven't included this feature in the library.

I hope this helps. If you come up with any simple examples of how to you do bidirectional messaging with osc.js, I'm happy to include it in the osc.js-examples repository.

colinbdclark commented 2 years ago

Closing this issue do to inactivity. If anyone wants to provide an example of this, I'm happy to reopen.