Remove the need for `linkClasses`?
Pomax opened this issue · comments
Technically the code no longer cares about the other party's API, forwards either work or they don't, and if they don't they'll have an error message. So do we still need linkClasses
or do we want to swap that out to just directly export createServer
, createClient
, and createWebClient
?
- Upside: no need to distribute or load the server at the client, or vice versa
- Downside: not as elegant as
factory.createThing
, and might interfere with #49 (in a way that consumer code can't validatethis.server.blah
calls in client code, orthis.clients[...].blah
calls in server code)
In terms of the code change, this is almost trivial: https://github.com/Pomax/socketless/tree/no-link-classes
This also preserves the "now deprecated" linkClasses
Code landed.