Pomax / socketless

A framework and methodology for writing web socket RPC programs, without writing a single line of web socket or RPC code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 validate this.server.blah calls in client code, or this.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.