cashubtc / nuts

Cashu protocol specifications https://cashubtc.github.io/nuts/
MIT License
152 stars 52 forks source link

NUT-17: WebSocket state updates #98

Closed Egge21M closed 4 months ago

Egge21M commented 8 months ago

This is my second take on an optional WebSocket protocol to allow bidirectional messages between clients and mints. WebSockets allow mints to push updates to clients without clients constantly polling them.

The proposal uses ids to keep track of requests, which removed the need to close and open sockets all the time and also allows for multiple request on a single socket connection.

Egge21M commented 5 months ago

I wonder if this should include a standardised endpoint as well? E.g. wss:///v1/ws

pablof7z commented 4 months ago

just floating this idea, too little too late but wonder if this is something that would have been of interest; what if the mint spoke nostr REQs and acted just like a nostr relay? would be kinda neat to be able to reuse all the nostr comms libraries we've got to talk to mints

Don't know, maybe it's dumb and the protocol is too different, but was curious.