collective-soundworks / soundworks

Creative coding framework for distributed applications based on Web technologies.
http://soundworks.dev
BSD 3-Clause "New" or "Revised" License
114 stars 7 forks source link

Socket - open binary socket only on request #68

Closed b-ma closed 1 month ago

b-ma commented 1 year ago

This is finally something we really don't use much, so that's overkill to open it every time

Only open it when some flag is given, e.g.:

const client = new Client(config, { useBinarySocket: true });

A plugin should be able to request it after instantiation as well, e.g. plugin-sync

b-ma commented 5 months ago

Is removed altogether in v4.0.0-alpha.23, may eventually be reintroduced in a plugin