RoboSats / robosats

A simple and private bitcoin exchange
https://learn.robosats.com
GNU Affero General Public License v3.0
738 stars 145 forks source link

Translate REST API trading pipeline to Websocket. #34

Open Reckless-Satoshi opened 2 years ago

Reckless-Satoshi commented 2 years ago

Current setup relies on OrderPage sending requests for update refreshes. It works, yet, it might get heavy on the server side over time, while it might also not feel snappy enough on the client side.

Converting the OrderPage into a bidirectional communication would be great; but also a big task. This feature would certainly break stuff that works at the moment.

This feature will eventually be very needed, yet, as of now, low priority. I am marking it for future releases after v0.2.0 alpha.

Reckless-Satoshi commented 2 years ago

Given how unstable Websockets are during the current TOR Network attack it might be more clever to translate the Websocket functions (the chat) to REST API :)