Kodylow / fedimint-http

MIT License
12 stars 14 forks source link

Websocket implementation #13

Open Kodylow opened 6 months ago

Kodylow commented 6 months ago

The current websocket implementation is very hacky, it just accepts a single message formatted as the same REST endpoint's body, parses the body and passes to the same internal logic as rest and sends a single message response.

Websocket reimpl should (especially for async like await-invoice and await-deposit) send back updates as messages and be in accordance with best practices for json-rpc 2.0