Unknown SDK

flushQueue

Empties the offline request queue without playing it.

Arguments

Copied to clipboard!
flushQueue();

Return

The Kuzzle instance.

Usage

Copied to clipboard!
try {
  kuzzle.flushQueue();
  console.log('Offline queue flushed');
} catch (error) {
  console.error(error);
}