ossia / ossia-sclang

minimal OSSIA API for supercollider
BSD 2-Clause "Simplified" License
6 stars 0 forks source link

Class WebSocketServer is missing when spinning up an OSCQuery server #1

Closed capital-G closed 3 years ago

capital-G commented 3 years ago

After installing the Quark in SC 3.10.4 and following the provided guide

https://github.com/ossia/ossia-sclang/blob/1d2913c18d6ffc1279751ee8bab312e80441022a/HelpSource/Guides/OssiaReference.schelp#L26-L27

one will face the error

Execution warning: Class 'WebSocketServer' not found
ERROR: Message 'new' not understood.

which is caused by

https://github.com/ossia/ossia-sclang/blob/1d2913c18d6ffc1279751ee8bab312e80441022a/classes/OssiaProtocols.sc#L130

Following the original repo it seems that a server was provided as a primitive within SuperCollider.

It seems SuperCollider is really lacking network capabilities (at least myself is writing python wrapper for network functionalities all the time) and maybe it is best to implement network capabilities once properly with a Quark so one can start and poll web servers from within SuperCollider?

thibaudk commented 3 years ago

Hi @capital-G

Very sorry, I didn't see this issue. I realize that it was made prior to our conversation on https://github.com/supercollider/supercollider/issues/5310

Was the issue cleared up by our discussion ? you need either https://github.com/pchdev/wsclang or https://github.com/scrime-u-bordeaux/supercollider for oscquery

capital-G commented 3 years ago

Yes - cleared up :)

thibaudk commented 3 years ago

cool, we'll continue the discussion on supercollider/supercollider#5310