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 invoiceIdThe ID of the invoice eventThe event that was triggered invoiceThe Invoice data -
async startServer()
-
Setup the Websocket server