getlantern / browsersunbounded

Interoperable browser-based P2P proxies for censorship circumvention
GNU General Public License v3.0
12 stars 0 forks source link

Improve constructor API, make sense of client types #86

Open noahlevenson opened 1 year ago

noahlevenson commented 1 year ago

Background discussion emerged in https://github.com/getlantern/broflake/pull/81

We should come up with more descriptive names than "widget" and "desktop," we should be clearer in code and documentation about the significance of client types, we should become clearer about whether Broflake is designed to let implementers build arbitrary clients out of lower level components or whether it's designed to enforce only a couple of higher level constructors, and we should expose simpler, higher order constructors to developers -- like NewBroflakeWidget and NewBroflakeDesktop.