Class: PaywallWebSocket

PaywallWebSocket(paywall, eventBus)

new PaywallWebSocket(paywall, eventBus)

Private class in charge of maintaining WebSocket connection and callbacks to the related payment flow.
Parameters:
Name Type Description
paywall Paywall | object the related payment flow.
eventBus PaywallEventBus | object the related payment flow event bus.
Source:

Methods

(static) close()

Method to close underlying WebSocket.
Source:

(static) connect(invoice)

Method to close underlying resources and background check.
Parameters:
Name Type Description
invoice object the newly generated invoice.
Source: