New abstract structure

Events for invoices get emitted in rooms
This commit is contained in:
2020-12-28 19:04:13 +01:00
parent 7f8ae69e2e
commit 0b3502d81f
14 changed files with 467 additions and 229 deletions

View File

@@ -1,10 +1,7 @@
# Socket events
## Invoice status
### Requests
* `subscribe` - Subscribe to a invoices progress. Returns `true` if successful.
* `selector` - Your selector
In order to receive updates about the a specific invoice, **you have to join the room with the selector.**
### Events
* `status` - Status changed (see PaymentStatus enum)
* `confirmationUpdate` - When there is a new confirmation on the transaction