SaitoTech / saito-lite-rust

a version of the Saito-Lite client written for compatibility with the Saito Rust client and binary data format
24 stars 28 forks source link

network code: separate browser #1512

Open benjiqq opened 1 year ago

benjiqq commented 1 year ago

it would probably be good to separate host and browser based connections in network.js. since these are different environments in terms of security resource, not all things will be the same.

so there would exist separate namespace to networkhost.js and networkbrowser.js. code that is shared could still be in network.

abstract the connection usable by clients and servers ("protocol")

benjiqq commented 1 year ago

https://github.com/SaitoTech/saito-lite-rust/blob/master/lib/saito/network.ts#L344

benjiqq commented 1 year ago

not sure how this ties into the general structure with lib/web/apps