SDK
SDK Javascript v7.x
2

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);
}