HelloZeroNet / ZeroNet

ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.io
Other
18.31k stars 2.26k forks source link

Need More Protocols for Frontend. #2464

Open canewsin opened 4 years ago

canewsin commented 4 years ago

Currently ZeroNet Supports websocket and html rendering, while on web these are sufficient, for native apps(apps which are not run on browsers), these are less efficient, suppose if you want to connect to site you need to render the site to get wrapper key and connect to websocket and get content from the site. Instead I propose to add protocols like REST Api, which can also be used on browser side as well as native side. Further, unless you need real-time updates websocket is less efficient than REST API, since it need to persist connection between client and server.

styromaniac commented 4 years ago

Considering that websockets are slow, I hope for this change.