Client API

client.flush

Drain queued events only when the browser hub track function is available

Drain queued events only when the browser hub track function is available. Returns true when at least one queued event was forwarded; false otherwise.

Signature

flush(): boolean;

Parameters

No parameters.

Returns

boolean

Example

App-supplied identifiers such as provider, signer, walletCheckout, sendTransfer, signOwnership and verifiedPaymentSignature represent your configured wallet integration or verified result. These are usage examples, not an automatically executed checkout.

import { createNibgate } from '@nibgate/sdk';
const client = createNibgate();
const resource = { id: 'article-1', title: 'Example article', type: 'article', price: '1', url: 'https://creator.example/articles/1' };

const drained = client.flush();

Source

Declaration, line 125 · Implementation, line 1 · Client binding, line 99

Pinned SDK 0.4.40 at 345fc04b984f01366cbe2a9f4064f22268d5d3f6.