new WebSocket()
Methods
-
async notify(invoiceId, event, invoice)
-
Notify any Websocket connections that are subscribed to the given invoiceId that an event has occurred.
Parameters:
Name Type Description invoiceId
The ID of the invoice event
The event that was triggered invoice
The Invoice data -
async startServer()
-
Setup the Websocket server